public class ChainedDatasetOperation extends java.lang.Object implements DatasetOperation
Constructor and Description |
---|
ChainedDatasetOperation()
Creates a new empty ChainedDatasetOperation.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getObjectMap()
Creates a map of the important fields for the instance, suitable for serialization.
|
java.util.List<DatasetOperation> |
getOps()
Returns the current list of DatasetOperations.
|
long |
getSerializationVersion()
Returns the current version of the serialization format.
|
int |
getVersion()
Returns the current class version.
|
void |
initCurrentVersion(java.util.Map<java.lang.String,java.lang.Object> objectMap)
Initializes an instance with a current-version object graph.
|
Dataset |
run(Dataset input)
Runs each DatasetOperation in turn and returns the final result.
|
ChainedDatasetOperation |
withOp(DatasetOperation op)
Appends a new DatasetOperation as the last operation in the chain.
|
ChainedDatasetOperation |
withOp(int idx,
DatasetOperation op)
Adds a new DatasetOperation to the chain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, initPreviousVersion, initUnknownVersion, load, read, save, write
public ChainedDatasetOperation()
public Dataset run(Dataset input)
run
in interface DatasetOperation
input
- original Datasetpublic ChainedDatasetOperation withOp(int idx, DatasetOperation op)
idx
- position of the operation - the 0th operation being the first operation performed.op
- DatasetOperation to add to the chainpublic ChainedDatasetOperation withOp(DatasetOperation op)
op
- DatasetOperation to add to the chainpublic java.util.List<DatasetOperation> getOps()
public long getSerializationVersion()
ObjectMap
getSerializationVersion
in interface ObjectMap
public int getVersion()
ObjectMap
getVersion
in interface ObjectMap
public java.util.Map<java.lang.String,java.lang.Object> getObjectMap()
ObjectMap
getObjectMap
in interface ObjectMap
public void initCurrentVersion(java.util.Map<java.lang.String,java.lang.Object> objectMap)
ObjectMap
initCurrentVersion
in interface ObjectMap
objectMap
- object graph for initialization