public class WorkspaceDataSource extends Object implements org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSource, org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource
DataSource fetches items from the user workspace.| Constructor and Description |
|---|
WorkspaceDataSource(String input,
org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] inputParameters)
This constructor for
WorkspaceDataSource |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
boolean |
isClosed() |
org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement |
next() |
org.gcube.datatransformation.datatransformationlibrary.model.ContentType |
nextContentType() |
public WorkspaceDataSource(String input, org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] inputParameters) throws Exception
WorkspaceDataSourceinput - The input value of the DataSource. if not provided, all files will be retrieved.
e.g: [{"user":"john.gerbesiotis","path":"/Workspace/doc.pdf"}]inputParameters - The input parameters of the DataSource. e.g. collectionid="workspace", limitusers="user1,user2"Exceptionpublic void close()
close in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandlerDataHandler.close()public boolean isClosed()
isClosed in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandlerDataHandler.isClosed()public org.gcube.datatransformation.datatransformationlibrary.model.ContentType nextContentType()
nextContentType in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSourceContentTypeDataSource.nextContentType()public boolean hasNext()
hasNext in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSourcehasNext in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSourceDataSource.hasNext()Copyright © 2014. All Rights Reserved.