public class RowPersistedTSet extends RowStoredTSet
BaseTSet.StateType
storedSource
Constructor and Description |
---|
RowPersistedTSet(BatchEnvironment tSetEnv,
SinkFunc<Row> storingSinkFn,
int parallelism,
RowSchema inputSchema) |
Modifier and Type | Method and Description |
---|---|
RowPersistedTSet |
addInput(java.lang.String key,
StorableTBase<?> input)
Allows users to pass in other TSets as inputs for a TSet
|
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.
|
RowPersistedTSet |
lazyPersist()
Performs persisting lazily.
|
RowPersistedTSet |
persist()
Similar to cache, but the data is stored in a disk based
DataPartition . |
RowPersistedTSet |
setName(java.lang.String n)
Sets the name for the
TBase |
RowPersistedTSet |
withSchema(TupleSchema schema) |
direct, getData, getInputSchema, getStoredSourceTSet, join, partition
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 RowPersistedTSet(BatchEnvironment tSetEnv, SinkFunc<Row> storingSinkFn, int parallelism, RowSchema inputSchema)
public RowPersistedTSet setName(java.lang.String n)
TBase
TBase
setName
in interface TBase
setName
in class BatchRowTSetImpl
public RowPersistedTSet addInput(java.lang.String key, StorableTBase<?> input)
AcceptingData
addInput
in interface AcceptingData<Row>
addInput
in class BatchRowTSetImpl
key
- the key used to store the given TSetinput
- a StorableTBase
TSet to be added as an inputpublic RowPersistedTSet 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 RowPersistedTSet persist()
StoringData
DataPartition
. This method would also expose the
checkpointing ability to TSet
s.persist
in interface StoringData<Row>
persist
in class BatchRowTSetImpl
public RowPersistedTSet lazyPersist()
StoringData
lazyPersist
in interface StoringData<Row>
lazyPersist
in class BatchRowTSetImpl
public INode getINode()
getINode
in interface BuildableTSet
getINode
in class RowStoredTSet