T - type of datapublic class AllReduceTLink<T> extends BatchSingleLink<T>
| Constructor and Description |
|---|
AllReduceTLink(BatchEnvironment tSetEnv,
ReduceFunc<T> rFn,
int sourceParallelism,
Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
CachedTSet<T> |
cache()
Runs this TSet and caches the data to an in-memory
DataPartition and exposes the data as another TSet. |
Edge |
getEdge() |
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. |
AllReduceTLink<T> |
setName(java.lang.String n)
Name of the TSet and return the same tlink
|
flatmap, forEach, lazyForEach, map, mapToTuplecompute, compute, compute, compute, getTSetEnv, sinkgetSchemaaddChildToGraph, equals, getId, getName, getSourceParallelism, getTargetParallelism, hashCode, rename, setTSetEnv, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitbuildgenerateID, getTBaseGraphpublic AllReduceTLink(BatchEnvironment tSetEnv, ReduceFunc<T> rFn, int sourceParallelism, Schema schema)
public Edge getEdge()
public AllReduceTLink<T> setName(java.lang.String n)
TLinkn - namepublic CachedTSet<T> lazyCache()
StoringDataTSet
is evaluated explicitly.lazyCache in interface StoringData<T>lazyCache in class BatchSingleLink<T>public CachedTSet<T> cache()
StoringDataDataPartition and exposes the data as another TSet.cache in interface StoringData<T>cache in class BatchSingleLink<T>public PersistedTSet<T> lazyPersist()
StoringDatalazyPersist in interface StoringData<T>lazyPersist in class BatchSingleLink<T>public PersistedTSet<T> persist()
StoringDataDataPartition. This method would also expose the
checkpointing ability to TSets.persist in interface StoringData<T>persist in class BatchSingleLink<T>