- java.lang.Object
-
- swim.streamlet.AbstractMapInletOutlet<K,V,I,O>
-
- swim.streamlet.combinator.ReduceFieldsOperator<K,V,I,O>
-
- swim.streamlet.combinator.ReduceFieldsCombinator<K,V,I,O>
-
- All Implemented Interfaces:
Inlet<I>
,MapInlet<K,V,I>
,MapInletOutlet<K,V,I,O>
,Outlet<O>
public class ReduceFieldsCombinator<K,V,I,O> extends ReduceFieldsOperator<K,V,I,O>
-
-
Field Summary
Fields Modifier and Type Field Description protected CombinerFunction<? super V,O>
accumulator
protected CombinerFunction<O,O>
combiner
protected O
identity
-
Fields inherited from class swim.streamlet.combinator.ReduceFieldsOperator
state
-
Fields inherited from class swim.streamlet.AbstractMapInletOutlet
effects, input, outputs, version
-
-
Constructor Summary
Constructors Constructor Description ReduceFieldsCombinator(O identity, CombinerFunction<? super V,O> accumulator, CombinerFunction<O,O> combiner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description O
accumulate(O result, V value)
O
combine(O result, O value)
O
get()
Returns the current state of thisOutlet
.O
identity()
-
Methods inherited from class swim.streamlet.combinator.ReduceFieldsOperator
onRecohereOutputKey
-
Methods inherited from class swim.streamlet.AbstractMapInletOutlet
bindInput, bindInput, bindOutput, decohere, decohereInput, decohereOutput, decohereOutputKey, didDecohere, didDecohereOutputKey, didRecohere, didRecohereOutputKey, disconnectInputs, disconnectOutputs, input, onDecohere, onDecohereOutputKey, onRecohere, outputIterator, recohere, recohereInput, recohereOutput, recohereOutputKey, unbindInput, unbindOutput, unbindOutputs, willDecohere, willDecohereOutputKey, willRecohere, willRecohereOutputKey
-
-
-
-
Field Detail
-
identity
protected final O identity
-
accumulator
protected final CombinerFunction<? super V,O> accumulator
-
combiner
protected final CombinerFunction<O,O> combiner
-
-
Constructor Detail
-
ReduceFieldsCombinator
public ReduceFieldsCombinator(O identity, CombinerFunction<? super V,O> accumulator, CombinerFunction<O,O> combiner)
-
-