public interface DistributableDataSource
DataSources whose DataElements are able to be distributed in workers.| Modifier and Type | Method and Description |
|---|---|
DataElement |
getDataElement(String dataElementID)
Returns a
DataElement instance from its id. |
String |
getNextDataElementID()
Returns the next
DataElement id which will be send to the worker. |
boolean |
hasNext()
Returns true if there is another
DataElement id available. |
void |
initializeDistributableDataSource(String input,
Parameter[] inputParameters)
Initializes the DistributableDataSource.
|
DataElement getDataElement(String dataElementID) throws Exception
DataElement instance from its id.dataElementID - The id of the DataElement.DataElement instance.Exception - If an error occurred in getting the DataElement.String getNextDataElementID() throws Exception
DataElement id which will be send to the worker.Exception - If the DistributableDataSource did not manage to get another data element id.boolean hasNext()
DataElement id available.DataElement id available.void initializeDistributableDataSource(String input, Parameter[] inputParameters) throws Exception
input - The input of the DistributableDataSourceinputParameters - Any input parameters required by the DistributableDataSource.Exception - If the DistributableDataSource could not be initialized.Copyright © 2014. All Rights Reserved.