public class Writer
extends org.gcube.data.tmf.impl.AbstractWriter
SourceWriter for TreeSources.| Constructor and Description |
|---|
Writer(TreeSource source)
Creates an instance for a
TreeSource. |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
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.trees.data.Tree> |
update(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> deltaStream) |
org.gcube.data.trees.data.Tree |
update(org.gcube.data.trees.data.Tree delta) |
public Writer(TreeSource source)
TreeSource.source - the sourcepublic org.gcube.data.trees.data.Tree add(org.gcube.data.trees.data.Tree tree)
throws org.gcube.data.tmf.api.exceptions.InvalidTreeException,
Exception
org.gcube.data.tmf.api.exceptions.InvalidTreeExceptionExceptionpublic org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> add(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> treeStream)
throws Exception
add in interface org.gcube.data.tmf.api.SourceWriteradd in class org.gcube.data.tmf.impl.AbstractWriterExceptionpublic org.gcube.data.trees.data.Tree update(org.gcube.data.trees.data.Tree delta)
throws org.gcube.data.tmf.api.exceptions.UnknownTreeException,
org.gcube.data.tmf.api.exceptions.InvalidTreeException,
Exception
org.gcube.data.tmf.api.exceptions.UnknownTreeExceptionorg.gcube.data.tmf.api.exceptions.InvalidTreeExceptionExceptionpublic org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> update(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> deltaStream)
throws Exception
update in interface org.gcube.data.tmf.api.SourceWriterupdate in class org.gcube.data.tmf.impl.AbstractWriterExceptionCopyright © 2018. All Rights Reserved.