Interface ParallelAggregator<I, E, O, ACC extends Accumulator<I,E,O> >
- All Superinterfaces:
Aggregator<I,E, O>
- All Known Implementing Classes:
AggCounting, AggErrorHandler, AggFromCollector, AggInputBroadcast, AggInputBroadcastMap, AggInputFilter, AggInputFlatMap, AggInputSplit, AggInputTransform, AggLcaMap, AggNatural, AggOutputTransform, AggReduce
public interface ParallelAggregator<I, E, O, ACC extends Accumulator<I,E,O>>
extends Aggregator<I,E,O>
Aggregator suitable for parallel processing.
Extends
Aggregator with a method to combine accumulators.- Author:
- raven
-
Method Summary
Modifier and TypeMethodDescriptionasCollector(E env) Wrap this aggregator as a Java8 collector.Combine accumulators.default ACCcombineRaw(Object x, Object y) Combine method that works on Objects.Methods inherited from interface Aggregator
accumulateAll, accumulateAll, accumulateAll, finish
-
Method Details
-
createAccumulator
ACC createAccumulator()- Specified by:
createAccumulatorin interfaceAggregator<I,E, O>
-
combine
-
combineRaw
Combine method that works on Objects. Exact type signatures are typically too unwieldy to be carried around in user code. Delegates tocombine(Accumulator, Accumulator)thus its notes apply.- Parameters:
x- First participant of combinationy- Second participant of combination- Returns:
- Combined accumulator
-
asCollector
-
asCollector
-