org.gcube.data.tr
Class Writer
java.lang.Object
org.gcube.data.tmf.impl.AbstractWriter
org.gcube.data.tr.Writer
- All Implemented Interfaces:
- Serializable, org.gcube.data.tmf.api.SourceWriter
public class Writer
- extends org.gcube.data.tmf.impl.AbstractWriter
A SourceWriter for TreeSources.
- Author:
- Fabio Simeoni
- See Also:
- Serialized Form
|
Method Summary |
org.gcube.data.streams.Stream<org.gcube.data.tml.outcomes.AddTreeOutcome> |
add(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> treeStream)
|
org.gcube.data.trees.data.Tree |
add(org.gcube.data.trees.data.Tree tree)
|
org.gcube.data.streams.Stream<org.gcube.data.tml.outcomes.UpdateTreeFailure> |
update(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> deltaStream)
|
void |
update(org.gcube.data.trees.data.Tree delta)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Writer
public Writer(TreeSource source)
- Creates an instance for a
TreeSource.
- Parameters:
source - the source
add
public org.gcube.data.trees.data.Tree add(org.gcube.data.trees.data.Tree tree)
throws org.gcube.data.tml.exceptions.InvalidTreeException,
Exception
- Throws:
org.gcube.data.tml.exceptions.InvalidTreeException
Exception
add
public org.gcube.data.streams.Stream<org.gcube.data.tml.outcomes.AddTreeOutcome> add(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> treeStream)
throws Exception
- Specified by:
add in interface org.gcube.data.tmf.api.SourceWriter- Overrides:
add in class org.gcube.data.tmf.impl.AbstractWriter
- Throws:
Exception
update
public void update(org.gcube.data.trees.data.Tree delta)
throws org.gcube.data.tml.exceptions.UnknownTreeException,
org.gcube.data.tml.exceptions.InvalidTreeException,
Exception
- Throws:
org.gcube.data.tml.exceptions.UnknownTreeException
org.gcube.data.tml.exceptions.InvalidTreeException
Exception
update
public org.gcube.data.streams.Stream<org.gcube.data.tml.outcomes.UpdateTreeFailure> update(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> deltaStream)
throws Exception
- Specified by:
update in interface org.gcube.data.tmf.api.SourceWriter- Overrides:
update in class org.gcube.data.tmf.impl.AbstractWriter
- Throws:
Exception
Copyright © 2012. All Rights Reserved.