public class RowCachedTSet extends RowStoredTSet
BaseTSet.StateType
storedSource
Constructor and Description |
---|
RowCachedTSet(BatchEnvironment tSetEnv,
SinkFunc<Row> sinkFunc,
int parallelism,
RowSchema inputSchema) |
Modifier and Type | Method and Description |
---|---|
RowCachedTSet |
cache()
Runs this TSet and caches the data to an in-memory
DataPartition and exposes the data as another TSet. |
INode |
getINode() |
RowCachedTSet |
lazyCache()
Performs caching lazily.
|
RowCachedTSet |
lazyPersist()
Performs persisting lazily.
|
RowCachedTSet |
persist()
Similar to cache, but the data is stored in a disk based
DataPartition . |
RowCachedTSet |
setName(java.lang.String n)
Sets the name for the
TBase |
RowCachedTSet |
withSchema(TupleSchema schema) |
direct, getData, getInputSchema, getStoredSourceTSet, join, partition
addInput, getTSetEnv, pipe, withSchema
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
getDataObject
build
generateID, getTBaseGraph
public RowCachedTSet(BatchEnvironment tSetEnv, SinkFunc<Row> sinkFunc, int parallelism, RowSchema inputSchema)
public RowCachedTSet setName(java.lang.String n)
TBase
TBase
setName
in interface TBase
setName
in class BatchRowTSetImpl
public RowCachedTSet withSchema(TupleSchema schema)
public RowCachedTSet cache()
StoringData
DataPartition
and exposes the data as another TSet.cache
in interface StoringData<Row>
cache
in class BatchRowTSetImpl
public RowCachedTSet lazyCache()
StoringData
TSet
is evaluated explicitly.lazyCache
in interface StoringData<Row>
lazyCache
in class BatchRowTSetImpl
public RowCachedTSet persist()
StoringData
DataPartition
. This method would also expose the
checkpointing ability to TSet
s.persist
in interface StoringData<Row>
persist
in class BatchRowTSetImpl
public RowCachedTSet lazyPersist()
StoringData
lazyPersist
in interface StoringData<Row>
lazyPersist
in class BatchRowTSetImpl
public INode getINode()
getINode
in interface BuildableTSet
getINode
in class RowStoredTSet