T
- the type of datapublic class GatherTLink<T> extends BatchGatherLink<T>
Gather comms message content signature is Iterator<Tuple<Integer, T>>. Here, the tuple is artificially created by the comms layer, and users would have very little idea about it. Hence, the tuple, needs to be broken apart, and only values need to be considered for compute operations like map, flatmap, foreach etc.
but, for the generic compute, Iterator<Tuple<Integer, T>> messages are valid.
Because of this reason, we can not use, IteratorLink<Tuple<Integer, T>>
Same logic applies to AllGather TLink
Constructor and Description |
---|
GatherTLink(BatchEnvironment tSetEnv,
int sourceParallelism,
Schema schema) |
Modifier and Type | Method and Description |
---|---|
Edge |
getEdge() |
GatherTLink<T> |
setName(java.lang.String n)
Name of the TSet and return the same tlink
|
GatherTLink<T> |
useDisk() |
cache, flatmap, forEach, lazyCache, lazyForEach, lazyPersist, map, mapToTuple, persist
compute, compute, compute, compute, getTSetEnv, sink
getSchema
addChildToGraph, equals, getId, getName, getSourceParallelism, getTargetParallelism, hashCode, rename, setTSetEnv, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
build
generateID, getTBaseGraph
public GatherTLink(BatchEnvironment tSetEnv, int sourceParallelism, Schema schema)
public Edge getEdge()
public GatherTLink<T> setName(java.lang.String n)
TLink
n
- namepublic GatherTLink<T> useDisk()