org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl
Class GRS2DataSink

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.GRS2DataSink

public class GRS2DataSink
extends java.lang.Object

This DataSink stores DataElements in a result set.

Author:
john.gerbesiotis - DI NKUA

Constructor Summary
GRS2DataSink(java.lang.String output, Parameter[] outputParameters)
          This constructor is used when DTS is instantiating a new AlternativeRepresentationDataSink.
 
Method Summary
 void append(DataElement dataElement)
           
 void close()
           
 java.lang.String getOutput()
           
 boolean isClosed()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GRS2DataSink

public GRS2DataSink(java.lang.String output,
                    Parameter[] outputParameters)
             throws java.lang.Exception
This constructor is used when DTS is instantiating a new AlternativeRepresentationDataSink.

Parameters:
output - The output value of the DataSink.
outputParameters - The output parameters of the DataSink.
Throws:
java.lang.Exception - If the result set could not be created.
Method Detail

append

public void append(DataElement dataElement)
See Also:
org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink#append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement)

close

public void close()
See Also:
org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler#close()

getOutput

public java.lang.String getOutput()
Returns:
The output of the transformation.
See Also:
org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink#getOutput()

isClosed

public boolean isClosed()
Returns:
true if the DataHandler has been closed.
See Also:
org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler#isClosed()