Package org.aksw.commons.collector.core
Class AggCounting<I,E>
java.lang.Object
org.aksw.commons.collector.core.AggCounting<I,E>
- Type Parameters:
I- The input type
- All Implemented Interfaces:
Serializable,Aggregator<I,,E, Long> ParallelAggregator<I,E, Long, Accumulator<I, E, Long>>
public class AggCounting<I,E>
extends Object
implements ParallelAggregator<I,E,Long,Accumulator<I,E,Long>>, Serializable
Aggregator whose accumulator count the number of seen input objects.
- Author:
- raven
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncombine(Accumulator<I, E, Long> a, Accumulator<I, E, Long> b) Combine accumulators.booleaninthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.collector.domain.Aggregator
accumulateAll, accumulateAll, accumulateAll, finishMethods inherited from interface org.aksw.commons.collector.domain.ParallelAggregator
asCollector, asCollector, combineRaw
-
Constructor Details
-
AggCounting
public AggCounting()
-
-
Method Details
-
createAccumulator
- Specified by:
createAccumulatorin interfaceAggregator<I,E, Long> - Specified by:
createAccumulatorin interfaceParallelAggregator<I,E, Long, Accumulator<I, E, Long>>
-
combine
Description copied from interface:ParallelAggregatorCombine accumulators. This method is allowed to mutate any of if its arguments, hence accumulators should be considered exhausted after combination.- Specified by:
combinein interfaceParallelAggregator<I,E, Long, Accumulator<I, E, Long>> - Parameters:
a- First participant of combinationb- Second participant of combination- Returns:
- Combined accumulator
-
hashCode
public int hashCode() -
equals
-