T
- tset typepublic class CheckpointedTSet<T> extends PersistedTSet<T>
PersistedTSet
to add the checkpointing capability. It does not have
the sink that would store the data, because the purpose of this tset is to expose the data
that was stored by a PersistedTSet
.
When this tset is executed, it would wrap DiskPartitionBackedSource
from
DiskPartitionBackedSourceWrapper
and return a CheckpointedSourceOp
as the
INode
for the underlying task.
BaseTSet.StateType
storedSource
Constructor and Description |
---|
CheckpointedTSet(BatchEnvironment tSetEnv,
DiskPartitionBackedSource<T> sourceFn,
int parallelism,
Schema inputSchema) |
Modifier and Type | Method and Description |
---|---|
INode |
getINode() |
SourceTSet<T> |
getStoredSourceTSet()
Once a cache TSet is run, it will produce data and store data in the data executor with the
tset ID as the key.
|
CheckpointedTSet<T> |
withSchema(Schema schema)
Sets the data type of the
TSet output. |
addInput, cache, lazyCache, lazyPersist, persist, setName
allGather, allReduce, direct, gather, getData, getDataObject, mapToTuple, partition, partition, pipe, reduce, replicate, union, union
getTSetEnv
getInputSchema, getOutputSchema, setOutputSchema
addChildToGraph, addChildToGraph, equals, getId, getInputs, getName, getParallelism, getStateType, hashCode, isMutable, rename, setMutable, setStateType, setTSetEnv, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
build
generateID, getTBaseGraph
public CheckpointedTSet(BatchEnvironment tSetEnv, DiskPartitionBackedSource<T> sourceFn, int parallelism, Schema inputSchema)
public SourceTSet<T> getStoredSourceTSet()
StoredTSet
SourceTSet
getStoredSourceTSet
in interface StorableTBase<T>
getStoredSourceTSet
in class StoredTSet<T>
SourceTSet
source tset from data
public CheckpointedTSet<T> withSchema(Schema schema)
TSet
TSet
output. This will be used in the packers for efficient
SER-DE operations in the following TLink
swithSchema
in interface TSet<T>
withSchema
in class PersistedTSet<T>
schema
- data type as a MessageType
TSet
public INode getINode()
getINode
in interface BuildableTSet
getINode
in class StoredTSet<T>