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
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 org.aksw.commons.collector.domain.Aggregator
accumulateAll, accumulateAll, accumulateAll, finish
-
Method Details
-
createAccumulator
ACC createAccumulator()- Specified by:
createAccumulatorin interfaceAggregator<I,E, O>
-
combine
Combine accumulators. This method is allowed to mutate any of if its arguments, hence accumulators should be considered exhausted after combination.- Parameters:
a- First participant of combinationb- Second participant of combination- Returns:
- Combined accumulator
-
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
Wrap this aggregator as a Java8 collector.- Returns:
- The collector view of this aggregator
-