Package org.aksw.commons.collector.core
Class AggInputFilter<I,E,O,SUBACC extends Accumulator<I,E,O>,SUBAGG extends ParallelAggregator<I,E,O,SUBACC>>
java.lang.Object
org.aksw.commons.collector.core.AggInputFilter<I,E,O,SUBACC,SUBAGG>
- Type Parameters:
I-O-SUBACC-SUBAGG-
- All Implemented Interfaces:
Serializable,Aggregator<I,,E, O> ParallelAggregator<I,E, O, AggInputFilter.AccInputFilter<I, E, O, SUBACC>>
public class AggInputFilter<I,E,O,SUBACC extends Accumulator<I,E,O>,SUBAGG extends ParallelAggregator<I,E,O,SUBACC>>
extends Object
implements ParallelAggregator<I,E,O,AggInputFilter.AccInputFilter<I,E,O,SUBACC>>, Serializable
Wrap an aggregator such that inputs are passed through a predicate.
The predicate must evaluate to true for an item to be forwarded to the underyling accumulator.
- Author:
- raven
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic interfaceAggInputFilter.AccInputFilter<I,E, O, SUBACC extends Accumulator<I, E, O>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
subAgg
-
inputFilter
-
-
Constructor Details
-
AggInputFilter
-
-
Method Details
-
createAccumulator
- Specified by:
createAccumulatorin interfaceAggregator<I,E, O> - Specified by:
createAccumulatorin interfaceParallelAggregator<I,E, O, SUBACC extends Accumulator<I, E, O>>
-
combine
public AggInputFilter.AccInputFilter<I,E, combineO, SUBACC> (AggInputFilter.AccInputFilter<I, E, O, SUBACC> a, AggInputFilter.AccInputFilter<I, E, O, SUBACC> b) 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, O, SUBACC extends Accumulator<I, E, O>> - Parameters:
a- First participant of combinationb- Second participant of combination- Returns:
- Combined accumulator
-
hashCode
public int hashCode() -
equals
-