Class AggInputBroadcast<I, E, O1, O2, SUBACC1 extends Accumulator<I,E,O1>, SUBAGG1 extends ParallelAggregator<I,E,O1,SUBACC1>, SUBACC2 extends Accumulator<I,E,O2>, SUBAGG2 extends ParallelAggregator<I,E,O2,SUBACC2>>
java.lang.Object
org.aksw.commons.collector.core.AggInputBroadcast<I,E,O1,O2,SUBACC1,SUBAGG1,SUBACC2,SUBAGG2>
- Type Parameters:
I- Input typeO1- output type of first aggregatorO2- output type of second aggregatorSUBACC1- accumulator type of first aggregatorSUBAGG1- the type of the first aggregatorSUBACC2- accumulator type of second aggregatorSUBAGG2- the type of the second aggregator
- All Implemented Interfaces:
Serializable, Aggregator<I, E, Map.Entry<O1,O2>>, ParallelAggregator<I, E, Map.Entry<O1, O2>, AggInputBroadcast.AccInputBroadcast<I, E, O1, O2, SUBACC1, SUBACC2>>
public class AggInputBroadcast<I, E, O1, O2, SUBACC1 extends Accumulator<I,E,O1>, SUBAGG1 extends ParallelAggregator<I,E,O1,SUBACC1>, SUBACC2 extends Accumulator<I,E,O2>, SUBAGG2 extends ParallelAggregator<I,E,O2,SUBACC2>>
extends Object
implements ParallelAggregator<I, E, Map.Entry<O1,O2>, AggInputBroadcast.AccInputBroadcast<I,E,O1,O2,SUBACC1,SUBACC2>>, Serializable
An aggregator that broadcasts its input to two sub-aggregators that accept the same input.
Serves the purpose to perform two independent type safe aggregations on the same input in a single pass.
- Author:
- raven
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAggInputBroadcast.AccInputBroadcast<I, E, O1, O2, SUBACC1 extends Accumulator<I,E, O1>, SUBACC2 extends Accumulator<I, E, O2>> class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Aggregator
accumulateAll, accumulateAll, accumulateAll, finishMethods inherited from interface ParallelAggregator
asCollector, asCollector, combineRaw
-
Field Details
-
subAgg1
-
subAgg2
-
-
Constructor Details
-
AggInputBroadcast
-
-
Method Details
-
createAccumulator
- Specified by:
createAccumulatorin interfaceAggregator<I,E, O1> - Specified by:
createAccumulatorin interfaceParallelAggregator<I,E, O1, O2>
-
combine
public AggInputBroadcast.AccInputBroadcast<I,E, combineO1, O2, SUBACC1, SUBACC2> (AggInputBroadcast.AccInputBroadcast<I, E, O1, O2, SUBACC1, SUBACC2> a, AggInputBroadcast.AccInputBroadcast<I, E, O1, O2, SUBACC1, SUBACC2> 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. -
hashCode
-
equals
-