Package org.aksw.commons.collector.core
Class AggInputBroadcastMap<I,E,K,O>
java.lang.Object
org.aksw.commons.collector.core.AggInputBroadcastMap<I,E,K,O>
- Type Parameters:
I- Input typeK- The key type by which aggregators are referred toO- output type common to all aggregators
- All Implemented Interfaces:
Serializable,Aggregator<I,,E, Map<K, O>> ParallelAggregator<I,E, Map<K, O>, AggInputBroadcastMap.AccInputBroadcastMap<I, E, K, O>>
public class AggInputBroadcastMap<I,E,K,O>
extends Object
implements ParallelAggregator<I,E,Map<K,O>,AggInputBroadcastMap.AccInputBroadcastMap<I,E,K,O>>, Serializable
An aggregator that broadcasts its input to multiple sub-aggregators that accept the same input
and have the same structure of the output
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 interfaceclass -
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
-
subAggMap
-
-
Constructor Details
-
AggInputBroadcastMap
-
-
Method Details
-
createAccumulator
- Specified by:
createAccumulatorin interfaceAggregator<I,E, K> - Specified by:
createAccumulatorin interfaceParallelAggregator<I,E, K, O>
-
combine
public AggInputBroadcastMap.AccInputBroadcastMap<I,E, combineK, O> (AggInputBroadcastMap.AccInputBroadcastMap<I, E, K, O> a, AggInputBroadcastMap.AccInputBroadcastMap<I, E, K, O> 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
public int hashCode() -
equals
-