org.gcube.data.tr
Class Writer

java.lang.Object
  extended by org.gcube.data.tmf.impl.AbstractWriter
      extended by 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

Constructor Summary
Writer(TreeSource source)
          Creates an instance for a TreeSource.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Writer

public Writer(TreeSource source)
Creates an instance for a TreeSource.

Parameters:
source - the source
Method Detail

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.trees.data.Tree> 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 org.gcube.data.trees.data.Tree 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.trees.data.Tree> 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.