public class KeyedCachedTSet<K,V> extends KeyedStoredTSet<K,V>
BaseTSet.StateTypestoredSource| Constructor and Description |
|---|
KeyedCachedTSet(BatchEnvironment tSetEnv,
SinkFunc<java.util.Iterator<Tuple<K,V>>> sinkFunc,
int parallelism,
KeyedSchema inputSchema) |
| Modifier and Type | Method and Description |
|---|---|
KeyedCachedTSet<K,V> |
cache()
Runs this TSet and caches the data to an in-memory
DataPartition and exposes the data as another TSet. |
KeyedCachedTSet<K,V> |
lazyCache()
Performs caching lazily.
|
KeyedPersistedTSet<K,V> |
lazyPersist()
Performs persisting lazily.
|
KeyedPersistedTSet<K,V> |
persist()
Similar to cache, but the data is stored in a disk based
DataPartition. |
KeyedCachedTSet<K,V> |
setName(java.lang.String n)
Name of the tset
|
KeyedCachedTSet<K,V> |
withSchema(TupleSchema schema)
Sets the data type of the
TupleTSet output. |
getData, getINode, getInputSchema, getStoredSourceTSet, join, join, keyedDirect, keyedGather, keyedGather, keyedGather, keyedGatherUngrouped, keyedGatherUngrouped, keyedGatherUngrouped, keyedPartition, keyedPipe, keyedReduceaddInput, getOutputSchema, getTSetEnvsetOutputSchemaaddChildToGraph, addChildToGraph, equals, getId, getInputs, getName, getParallelism, getStateType, hashCode, isMutable, rename, setMutable, setStateType, setTSetEnv, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDataObjectbuildgenerateID, getTBaseGraphpublic KeyedCachedTSet(BatchEnvironment tSetEnv, SinkFunc<java.util.Iterator<Tuple<K,V>>> sinkFunc, int parallelism, KeyedSchema inputSchema)
public KeyedCachedTSet<K,V> setName(java.lang.String n)
BatchTupleTSetpublic KeyedCachedTSet<K,V> withSchema(TupleSchema schema)
TupleTSetTupleTSet output. This will be used in the packers for efficient
SER-DE operations in the following TLinkswithSchema in interface TupleTSet<K,V>withSchema in class BatchTupleTSetImpl<K,V>schema - data type as a MessageTypeTupleTSetpublic KeyedCachedTSet<K,V> cache()
StoringDataDataPartition and exposes the data as another TSet.cache in interface StoringData<Tuple<K,V>>cache in class BatchTupleTSetImpl<K,V>public KeyedCachedTSet<K,V> lazyCache()
StoringDataTSet
is evaluated explicitly.lazyCache in interface StoringData<Tuple<K,V>>lazyCache in class BatchTupleTSetImpl<K,V>public KeyedPersistedTSet<K,V> persist()
StoringDataDataPartition. This method would also expose the
checkpointing ability to TSets.persist in interface StoringData<Tuple<K,V>>persist in class BatchTupleTSetImpl<K,V>public KeyedPersistedTSet<K,V> lazyPersist()
StoringDatalazyPersist in interface StoringData<Tuple<K,V>>lazyPersist in class BatchTupleTSetImpl<K,V>