Class AggReduce<I,E>

java.lang.Object
org.aksw.commons.collector.core.AggReduce<I,E>
All Implemented Interfaces:
Serializable, Aggregator<I,E,I>, ParallelAggregator<I, E, I, Accumulator<I,E,I>>

public class AggReduce<I,E> extends Object implements ParallelAggregator<I, E, I, Accumulator<I,E,I>>, Serializable
Aggregator whose accumulators apply a reduce operation to their value and their input to compute their new value. Accumulators are initialized with a zero element. Each accumulator obtains its zero element from a supplier which allows for reduce operations that mutate that element. Used as a basis for: min, max, sum (which in turn are the basis for e.g. avg)
See Also: