T1
- comms data typeT0
- base data typepublic interface StreamingTLink<T1,T0> extends TLink<T1,T0>
TLink
. Also overrides the return types to match streaming
operations.Modifier and Type | Method and Description |
---|---|
<O> StreamingTSet<O> |
compute(ComputeCollectorFunc<O,T1> computeFunction)
Creates a Compute
TSet based on the ComputeCollectorFunc provided. |
<O> StreamingTSet<O> |
compute(ComputeFunc<O,T1> computeFunction)
Creates a Compute
TSet based on the ComputeFunc provided. |
<O> StreamingTSet<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> StreamingTSet<O> |
map(MapFunc<O,T0> mapFn)
Performs elementwise map operation based on the
MapFunc provided |
<K,V> StreamingTupleTSet<K,V> |
mapToTuple(MapFunc<Tuple<K,V>,T0> genTupleFn)
|
StreamingTLink<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 . |
StreamingTLink<T1,T0> setName(java.lang.String name)
TLink
<O> StreamingTSet<O> compute(ComputeFunc<O,T1> computeFunction)
TLink
TSet
based on the ComputeFunc
provided.<O> StreamingTSet<O> compute(ComputeCollectorFunc<O,T1> computeFunction)
TLink
TSet
based on the ComputeCollectorFunc
provided.compute
in interface TLink<T1,T0>
O
- output type (for the RecordCollector
)computeFunction
- compute function with collector<O> StreamingTSet<O> map(MapFunc<O,T0> mapFn)
TLink
MapFunc
provided<O> StreamingTSet<O> flatmap(FlatMapFunc<O,T0> mapFn)
TLink
FlatMapFunc
provided<K,V> StreamingTupleTSet<K,V> mapToTuple(MapFunc<Tuple<K,V>,T0> genTupleFn)
TLink
void forEach(ApplyFunc<T0> applyFunction)
TLink
ApplyFunc
does not
return anything.