T
- tset typepublic interface StreamingTSet<T> extends TSet<T>
TSet
interface. Adds methods related to
Batch OperationMode
and overrides generic
TSet
and TLink
return type to StreamingTSet
and StreamingTLink
in all methods.Modifier and Type | Method and Description |
---|---|
StreamingTLink<java.util.Iterator<Tuple<java.lang.Integer,T>>,T> |
allGather()
Same as gather, but all the target TSet instances would receive the gathered result in the
runtime.
|
StreamingTLink<T,T> |
allReduce(ReduceFunc<T> reduceFn)
Similar to reduce, but all instances of the target
TSet would receive the reduced
result. |
StreamingTLink<T,T> |
direct()
Returns a Direct
TLink that corresponds to the communication operation where the data
will be transferred to another TSet directly. |
StreamingTLink<java.util.Iterator<Tuple<java.lang.Integer,T>>,T> |
gather()
Returns a Gather
TLink that would gather data to the target TSet instance with index
0 (in the runtime). |
<K,V> StreamingTupleTSet<K,V> |
mapToTuple(MapFunc<Tuple<K,V>,T> mapToTupleFn)
|
StreamingTLink<T,T> |
partition(PartitionFunc<T> partitionFn)
Same as above, but the parallelism will be preserved in the target
TSet . |
StreamingTLink<T,T> |
partition(PartitionFunc<T> partitionFn,
int targetParallelism)
Returns a Partition
TLink that would partition data according based on a function
provided. |
StreamingTLink<T,T> |
reduce(ReduceFunc<T> reduceFn)
Returns a Reduce
TLink that reduce data on to the target TSet instance (in the runtime)
with index 0. |
StreamingTLink<T,T> |
replicate(int replications)
|
StreamingTSet<T> |
setName(java.lang.String name)
Sets the name
|
StreamingTSet<T> |
union(java.util.Collection<TSet<T>> tSets)
Same as above, but accepts a
Collection of TSet s. |
StreamingTSet<T> |
union(TSet<T> unionTSet)
|
withSchema
StreamingTSet<T> setName(java.lang.String name)
TSet
StreamingTLink<T,T> direct()
TSet
TLink
that corresponds to the communication operation where the data
will be transferred to another TSet directly.StreamingTLink<T,T> reduce(ReduceFunc<T> reduceFn)
TSet
TLink
that reduce data on to the target TSet instance (in the runtime)
with index 0.StreamingTLink<T,T> allReduce(ReduceFunc<T> reduceFn)
TSet
TSet
would receive the reduced
result.StreamingTLink<T,T> partition(PartitionFunc<T> partitionFn, int targetParallelism)
TSet
StreamingTLink<T,T> partition(PartitionFunc<T> partitionFn)
TSet
TSet
.StreamingTLink<java.util.Iterator<Tuple<java.lang.Integer,T>>,T> gather()
TSet
TLink
that would gather data to the target TSet instance with index
0 (in the runtime).StreamingTLink<java.util.Iterator<Tuple<java.lang.Integer,T>>,T> allGather()
TSet
<K,V> StreamingTupleTSet<K,V> mapToTuple(MapFunc<Tuple<K,V>,T> mapToTupleFn)
TSet
TupleTSet
based on the MapFunc
provided. This will an entry point
to keyed communication operations from a non-keyed TSet
.mapToTuple
in interface TSet<T>
K
- type of keyV
- type of valuemapToTupleFn
- Map functionStreamingTLink<T,T> replicate(int replications)
TSet
StreamingTSet<T> union(TSet<T> unionTSet)
TSet