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

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.GRS2DataSink
All Implemented Interfaces:
org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler, org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink

public class GRS2DataSink
extends Object
implements org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink

This DataSink stores DataElements in a result set.

Author:
john.gerbesiotis - DI NKUA

Constructor Summary
GRS2DataSink(String output, org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] outputParameters)
          This constructor is used when DTS is instantiating a new gRS2 Data Sink.
 
Method Summary
 void append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement dataElement)
           
 void close()
           
 String getOutput()
           
 boolean isClosed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GRS2DataSink

public GRS2DataSink(String output,
                    org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] outputParameters)
             throws Exception
This constructor is used when DTS is instantiating a new gRS2 Data Sink.

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

append

public void append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement dataElement)
Specified by:
append in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink
See Also:
DataSink.append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement)

close

public void close()
Specified by:
close in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler
See Also:
DataHandler.close()

getOutput

public String getOutput()
Specified by:
getOutput in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink
Returns:
The output of the transformation.
See Also:
DataSink.getOutput()

isClosed

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


Copyright © 2012. All Rights Reserved.