T1
- comms data typeT0
- base data typepublic interface BatchTLink<T1,T0> extends TLink<T1,T0>, StoringData<T0>
TLink
with the capability of StoringData
. Also overrides
the return types to match batch operations.Modifier and Type | Method and Description |
---|---|
<O> BatchTSet<O> |
compute(ComputeCollectorFunc<O,T1> computeFunction)
Creates a Compute
TSet based on the ComputeCollectorFunc provided. |
<O> BatchTSet<O> |
compute(ComputeFunc<O,T1> computeFunction)
Creates a Compute
TSet based on the ComputeFunc provided. |
<O> BatchTSet<O> |
flatmap(FlatMapFunc<O,T0> mapFn)
Performs flat map operation based on the
FlatMapFunc provided |
void |
forEach(ApplyFunc<T0> applyFunction)
Applies a function elementwise.
|
BatchTSet<java.lang.Object> |
lazyForEach(ApplyFunc<T0> applyFunction) |
<O> BatchTSet<O> |
map(MapFunc<O,T0> mapFn)
Performs elementwise map operation based on the
MapFunc provided |
<K,V> BatchTupleTSet<K,V> |
mapToTuple(MapFunc<Tuple<K,V>,T0> genTupleFn)
|
BatchTLink<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 . |
cache, lazyCache, lazyPersist, persist
BatchTLink<T1,T0> setName(java.lang.String name)
TLink
<O> BatchTSet<O> compute(ComputeFunc<O,T1> computeFunction)
TLink
TSet
based on the ComputeFunc
provided.<O> BatchTSet<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> BatchTSet<O> map(MapFunc<O,T0> mapFn)
TLink
MapFunc
provided<O> BatchTSet<O> flatmap(FlatMapFunc<O,T0> mapFn)
TLink
FlatMapFunc
provided<K,V> BatchTupleTSet<K,V> mapToTuple(MapFunc<Tuple<K,V>,T0> genTupleFn)
TLink
TBase sink(SinkFunc<T1> sinkFunction)
TLink
SinkFunc
.void forEach(ApplyFunc<T0> applyFunction)
TLink
ApplyFunc
does not
return anything.