K
- tset key typepublic class KeyedCheckpointedTSet<K,V> extends KeyedPersistedTSet<K,V>
KeyedPersistedTSet
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 KeyedPersistedTSet
.
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 |
---|
KeyedCheckpointedTSet(BatchEnvironment tSetEnv,
DiskPartitionBackedSource<Tuple<K,V>> sourceFn,
int parallelism,
KeyedSchema inputSchema) |
Modifier and Type | Method and Description |
---|---|
INode |
getINode()
Reuses the
DiskPartitionBackedSourceWrapper from non-keyed operations because there
will be no keyed writes to edges. |
KeyedSourceTSet<K,V> |
getStoredSourceTSet()
retrieve data saved in the TSet
|
addInput, cache, lazyCache, lazyPersist, persist, setName, withSchema
getData, getInputSchema, join, join, keyedDirect, keyedGather, keyedGather, keyedGather, keyedGatherUngrouped, keyedGatherUngrouped, keyedGatherUngrouped, keyedPartition, keyedPipe, keyedReduce
getOutputSchema, getTSetEnv
setOutputSchema
addChildToGraph, addChildToGraph, equals, getId, getInputs, getName, getParallelism, getStateType, hashCode, isMutable, rename, setMutable, setStateType, setTSetEnv, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDataObject
build
generateID, getTBaseGraph
public KeyedCheckpointedTSet(BatchEnvironment tSetEnv, DiskPartitionBackedSource<Tuple<K,V>> sourceFn, int parallelism, KeyedSchema inputSchema)
public KeyedSourceTSet<K,V> getStoredSourceTSet()
StorableTBase
getStoredSourceTSet
in interface StorableTBase<Tuple<K,V>>
getStoredSourceTSet
in class KeyedStoredTSet<K,V>
public INode getINode()
DiskPartitionBackedSourceWrapper
from non-keyed operations because there
will be no keyed writes to edges. This will only expose the
DataPartition
that will be called by the
TaskExecutor
getINode
in interface BuildableTSet
getINode
in class KeyedStoredTSet<K,V>