T1
- Type output from the communication layer for the corresponding edgeT0
- Base type of the edgepublic interface TLink<T1,T0> extends TBase
TSet
s and TupleTSet
s. These would map to
some form of communication operations in the communication layer.
Communication layer outputs three variations/types of data outputs (corresponds to T1).
- Single value
- Iterator of values
- Special iterator for gather operationsModifier and Type | Method and Description |
---|---|
<O> TSet<O> |
compute(ComputeCollectorFunc<O,T1> computeFunction)
Creates a Compute
TSet based on the ComputeCollectorFunc provided. |
<O> TSet<O> |
compute(ComputeFunc<O,T1> computeFunction)
Creates a Compute
TSet based on the ComputeFunc provided. |
<O> TSet<O> |
flatmap(FlatMapFunc<O,T0> mapFn)
Performs flat map operation based on the
FlatMapFunc provided |
void |
forEach(ApplyFunc<T0> applyFunction)
Applies a function elementwise.
|
<O> TSet<O> |
map(MapFunc<O,T0> mapFn)
Performs elementwise map operation based on the
MapFunc provided |
<K,V> TupleTSet<K,V> |
mapToTuple(MapFunc<Tuple<K,V>,T0> genTupleFn)
|
TLink<T1,T0> |
setName(java.lang.String name)
Name of the TSet and return the same tlink
|
TBase |
sink(SinkFunc<T1> sinkFunction)
Creates a Sink TSet based on the
SinkFunc . |
<O> TSet<O> compute(ComputeFunc<O,T1> computeFunction)
TSet
based on the ComputeFunc
provided.O
- output tset base typecomputeFunction
- comp function. Takes in T0 type object and map to the output type O<O> TSet<O> compute(ComputeCollectorFunc<O,T1> computeFunction)
TSet
based on the ComputeCollectorFunc
provided.O
- output type (for the RecordCollector
)computeFunction
- compute function with collector<O> TSet<O> map(MapFunc<O,T0> mapFn)
MapFunc
providedO
- output typemapFn
- map function T0 to O<O> TSet<O> flatmap(FlatMapFunc<O,T0> mapFn)
FlatMapFunc
providedO
- map function to T0 to multiple elements of <O>mapFn
- map function which can produce multiple elements for a single <T0> elementvoid forEach(ApplyFunc<T0> applyFunction)
ApplyFunc
does not
return anything.applyFunction
- apply function