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

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.RSBlobDataBridge
All Implemented Interfaces:
org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource, org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataBridge, org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler, org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink, org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource

public class RSBlobDataBridge
extends Object
implements org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataBridge

Author:
Dimitris Katris, NKUA

DataBridge which appends data elements to a local result set.


Constructor Summary
RSBlobDataBridge()
          Instantiates the DataBridge.
 
Method Summary
 void append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement element)
           
 void close()
           
 String getOutput()
           
 boolean hasNext()
           
 boolean isClosed()
           
 org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement next()
           
 org.gcube.datatransformation.datatransformationlibrary.model.ContentType nextContentType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSBlobDataBridge

public RSBlobDataBridge()
Instantiates the DataBridge.

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource
Specified by:
hasNext in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource
Returns:
true if the DataSource has more elements.
See Also:
DataSource.hasNext()

next

public org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement next()
Specified by:
next in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource
Returns:
the next element of the DataSource.
See Also:
DataSource.next()

nextContentType

public org.gcube.datatransformation.datatransformationlibrary.model.ContentType nextContentType()
Specified by:
nextContentType in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource
Returns:
the next element's ContentType from the DataSource.
See Also:
ContentTypeDataSource.nextContentType()

append

public void append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement element)
Specified by:
append in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink
Parameters:
element - DataElement to be appended to this 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:
null
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.