Interface Aggregator<B,E,T>
- Type Parameters:
B- The type of bindings being accumulated by the accumulator.E- The environment/context to be passed to accumulator.T- The result object of the accumulation.
- All Known Subinterfaces:
ParallelAggregator<I,E, O, ACC>
- All Known Implementing Classes:
AggCounting, AggErrorHandler, AggFinish, AggFromCollector, AggInputBroadcast, AggInputBroadcastMap, AggInputFilter, AggInputFlatMap, AggInputSplit, AggInputTransform, AggLcaMap, AggNatural, AggOutputTransform, AggReduce
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for agregators.
-
Method Summary
Modifier and TypeMethodDescriptionaccumulateAll(Iterable<? extends B> iterable, E env) Convenience function to sequentially accumulate a given iterableaccumulateAll(Iterator<? extends B> it, E env) Convenience function to sequentially accumulate a given iteratoraccumulateAll(Stream<? extends B> stream, E env) Convenience function to sequentially accumulate a given stream.Accumulator<B, E, T> default <U> Aggregator<B, E, U> finish(SerializableFunction<T, U> transform) Transform the final value of an aggregation
-
Method Details
-
createAccumulator
Accumulator<B,E, createAccumulator()T> -
finish
Transform the final value of an aggregation -
accumulateAll
-
accumulateAll
-
accumulateAll
-