T - base type of the tsetpublic class CachedTSet<T> extends StoredTSet<T>
BaseTSet.StateTypestoredSource| Constructor and Description |
|---|
CachedTSet(BatchEnvironment tSetEnv,
SinkFunc<?> sinkFunc,
int parallelism,
Schema inputSchema) |
| Modifier and Type | Method and Description |
|---|---|
CachedTSet<T> |
addInput(java.lang.String key,
StorableTBase<?> input)
Adds data to this TSet
|
CachedTSet<T> |
cache()
Runs this TSet and caches the data to an in-memory
DataPartition and exposes the data as another TSet. |
CachedTSet<T> |
lazyCache()
Performs caching lazily.
|
PersistedTSet<T> |
lazyPersist()
Performs persisting lazily.
|
PersistedTSet<T> |
persist()
Similar to cache, but the data is stored in a disk based
DataPartition. |
CachedTSet<T> |
setName(java.lang.String n)
Sets the name for the
TBase |
CachedTSet<T> |
withSchema(Schema schema)
Sets the data type of the
TSet output. |
allGather, allReduce, direct, gather, getData, getDataObject, getINode, getStoredSourceTSet, mapToTuple, partition, partition, pipe, reduce, replicate, union, uniongetTSetEnvgetInputSchema, getOutputSchema, setOutputSchemaaddChildToGraph, addChildToGraph, equals, getId, getInputs, getName, getParallelism, getStateType, hashCode, isMutable, rename, setMutable, setStateType, setTSetEnv, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitbuildgenerateID, getTBaseGraphpublic CachedTSet(BatchEnvironment tSetEnv, SinkFunc<?> sinkFunc, int parallelism, Schema inputSchema)
public CachedTSet<T> cache()
StoringDataDataPartition and exposes the data as another TSet.cache in interface StoringData<T>cache in class BatchTSetImpl<T>public CachedTSet<T> lazyCache()
StoringDataTSet
is evaluated explicitly.lazyCache in interface StoringData<T>lazyCache in class BatchTSetImpl<T>public PersistedTSet<T> persist()
StoringDataDataPartition. This method would also expose the
checkpointing ability to TSets.persist in interface StoringData<T>persist in class BatchTSetImpl<T>public PersistedTSet<T> lazyPersist()
StoringDatalazyPersist in interface StoringData<T>lazyPersist in class BatchTSetImpl<T>public CachedTSet<T> setName(java.lang.String n)
TBaseTBasepublic CachedTSet<T> addInput(java.lang.String key, StorableTBase<?> input)
BatchTSetaddInput in interface AcceptingData<T>addInput in interface BatchTSet<T>addInput in class StoredTSet<T>key - the key used to store the given TSetinput - a @StorableTBase TSet to be added as an inputpublic CachedTSet<T> withSchema(Schema schema)
TSetTSet output. This will be used in the packers for efficient
SER-DE operations in the following TLinkswithSchema in interface TSet<T>withSchema in class BatchTSetImpl<T>schema - data type as a MessageTypeTSet