Class AggInputFlatMap<I, E, J, O, SUBACC extends Accumulator<J,E,O> , SUBAGG extends ParallelAggregator<J,E,O,SUBACC> >
java.lang.Object
org.aksw.commons.collector.core.AggInputFlatMap<I,E,J,O,SUBACC,SUBAGG>
- All Implemented Interfaces:
Serializable, Aggregator<I,E, O>, ParallelAggregator<I, E, O, AggInputFlatMap.AccInputFlatMap<I, E, J, O, SUBACC>>
public class AggInputFlatMap<I, E, J, O, SUBACC extends Accumulator<J,E,O>, SUBAGG extends ParallelAggregator<J,E,O,SUBACC>>
extends Object
implements ParallelAggregator<I, E, O, AggInputFlatMap.AccInputFlatMap<I,E,J,O,SUBACC>>, Serializable
Pass collection valued input to an accumulator that accepts only the individual items
For example, pass all nodes of a binding to an accumulator for nodes
This operation is a variant of input transform, where the transform target
is an iterator. Each item of the iterator then passed to the accumulator.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAggInputFlatMap.AccInputFlatMap<I, E, J, O, SUBACC extends Accumulator<J,E, O>> class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAggInputFlatMap(SUBAGG subAgg, BiFunction<? super I, E, ? extends Iterator<? extends J>> inputTransform) -
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
-
subAgg
-
inputTransform
-
-
Constructor Details
-
AggInputFlatMap
-
-
Method Details
-
createAccumulator
- Specified by:
createAccumulatorin interfaceAggregator<I,E, J> - Specified by:
createAccumulatorin interfaceParallelAggregator<I,E, J, O>
-
combine
public AggInputFlatMap.AccInputFlatMap<I,E, combineJ, O, SUBACC> (AggInputFlatMap.AccInputFlatMap<I, E, J, O, SUBACC> a, AggInputFlatMap.AccInputFlatMap<I, E, J, 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. -
hashCode
-
equals
-