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 TSets. |
StreamingTSet<T> |
union(TSet<T> unionTSet)
|
withSchemaStreamingTSet<T> setName(java.lang.String name)
TSetStreamingTLink<T,T> direct()
TSetTLink that corresponds to the communication operation where the data
will be transferred to another TSet directly.StreamingTLink<T,T> reduce(ReduceFunc<T> reduceFn)
TSetTLink that reduce data on to the target TSet instance (in the runtime)
with index 0.StreamingTLink<T,T> allReduce(ReduceFunc<T> reduceFn)
TSetTSet would receive the reduced
result.StreamingTLink<T,T> partition(PartitionFunc<T> partitionFn, int targetParallelism)
TSetStreamingTLink<T,T> partition(PartitionFunc<T> partitionFn)
TSetTSet.StreamingTLink<java.util.Iterator<Tuple<java.lang.Integer,T>>,T> gather()
TSetTLink 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)
TSetTupleTSet 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)
TSetStreamingTSet<T> union(TSet<T> unionTSet)
TSet