Package org.aksw.jenax.arq.aggregation
Class AccStaticMultiplex<B,E,K,U,V>
java.lang.Object
org.aksw.jenax.arq.aggregation.AccStaticMultiplex<B,E,K,U,V>
- Type Parameters:
K-V-
- All Implemented Interfaces:
org.aksw.commons.collector.domain.Accumulator<B,E, Map<K, V>>
public class AccStaticMultiplex<B,E,K,U,V>
extends Object
implements org.aksw.commons.collector.domain.Accumulator<B,E,Map<K,V>>
An ggregator that initialized with a static map<Key, Aggregator<...>
Every key in the map is passed to a function that yields the value to be passed as the new binding to the child accumulator.
Hence, this accumulator is 'map'-centric as its the map's keys that drive the lookup
TODO Clarify relation between AggObject, AggMap and AggStaticMultiplex
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiFunction<B,K, ? extends U> Obtain the childBinding based on the current binding and the current key of the map -
Constructor Summary
ConstructorsConstructorDescriptionAccStaticMultiplex(BiFunction<B, K, ? extends U> childBinding, Map<K, org.aksw.commons.collector.domain.Accumulator<U, E, V>> keyToSubAcc) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.collector.domain.Accumulator
accumulate
-
Field Details
-
childBinding
Obtain the childBinding based on the current binding and the current key of the map -
keyToSubAcc
-
-
Constructor Details
-
AccStaticMultiplex
-
-
Method Details
-
accumulate
-
getValue
-
create
public static <B,E, org.aksw.commons.collector.domain.Accumulator<B,K, U, V> E, createMap<K, V>> (BiFunction<B, K, ? extends U> childBinding, Map<K, org.aksw.commons.collector.domain.Accumulator<U, E, V>> keyToSubAcc)
-