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

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

public class MCollectionDataSink
extends java.lang.Object

Author:
Dimitris Katris, NKUA

This DataSink stores DataElements in a metadata collection.


Constructor Summary
MCollectionDataSink(java.lang.String output, Parameter[] outputParameters)
           
 
Method Summary
 void append(DataElement dataElement)
           
 void close()
           
 java.util.Locale getLocaleFromString(java.lang.String localeString)
           
 java.lang.String getOutput()
           
 boolean isClosed()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCollectionDataSink

public MCollectionDataSink(java.lang.String output,
                           Parameter[] outputParameters)
                    throws java.lang.Exception
Parameters:
output - The output value of the DataSink.
outputParameters - The output parameters of the DataSink.
Throws:
java.lang.Exception - If the collection could not be created.
Method Detail

append

public void append(DataElement dataElement)
Parameters:
dataElement - DataElement to be appended to this DataSink
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()

getLocaleFromString

public java.util.Locale getLocaleFromString(java.lang.String localeString)