org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl
Class CMAggregateDataSource
java.lang.Object
java.lang.Thread
org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.CMAggregateDataSource
- All Implemented Interfaces:
- Runnable, org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource, org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler, org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource
public class CMAggregateDataSource
- extends Thread
- implements org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource, org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource
- Author:
- Dimitris Katris, NKUA
This DataSource fetches DataElements from a content collection.
|
Constructor Summary |
CMAggregateDataSource(String input,
org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] inputParameters)
|
|
Method Summary |
void |
close()
|
boolean |
hasNext()
|
boolean |
isClosed()
|
org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement |
next()
|
org.gcube.datatransformation.datatransformationlibrary.model.ContentType |
nextContentType()
|
void |
run()
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
CMAggregateDataSource
public CMAggregateDataSource(String input,
org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] inputParameters)
throws Exception
- Parameters:
input - The input value of the DataSource.inputParameters - The input parameters of the DataSource.
- Throws:
Exception - If data source could not be initialized
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()
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
- See Also:
Thread.run()
close
public void close()
- Specified by:
close in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler
- See Also:
DataHandler.close()
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()
nextContentType
public org.gcube.datatransformation.datatransformationlibrary.model.ContentType nextContentType()
- Specified by:
nextContentType in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource
Copyright © 2012. All Rights Reserved.