Class AggMap2<B,E,K,V,C extends org.aksw.commons.collector.domain.Aggregator<B,E,V>>

java.lang.Object
org.aksw.jenax.arq.aggregation.AggMap2<B,E,K,V,C>
Type Parameters:
B -
K -
V -
C -
All Implemented Interfaces:
org.aksw.commons.collector.domain.Aggregator<B,E,Map<K,V>>

public class AggMap2<B,E,K,V,C extends org.aksw.commons.collector.domain.Aggregator<B,E,V>> extends Object implements org.aksw.commons.collector.domain.Aggregator<B,E,Map<K,V>>
Aggregator that maps each input item to a single key and allocates a sub aggregator for that key if none exists yet.
Author:
raven
  • Constructor Summary

    Constructors
    Constructor
    Description
    AggMap2(BiFunction<B,Long,K> mapper, C subAgg)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <B, E, K, V, C extends org.aksw.commons.collector.domain.Aggregator<B, E, V>>
    AggMap2<B,E,K,V,C>
    create(BiFunction<B,Long,K> mapper, C subAgg)
     
    static <B, E, K, V, C extends org.aksw.commons.collector.domain.Aggregator<B, E, V>>
    AggMap2<B,E,K,V,C>
    create(Function<B,K> mapper, C subAgg)
     
    org.aksw.commons.collector.domain.Accumulator<B,E,Map<K,V>>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.aksw.commons.collector.domain.Aggregator

    accumulateAll, accumulateAll, accumulateAll, finish
  • Constructor Details

  • Method Details

    • createAccumulator

      public org.aksw.commons.collector.domain.Accumulator<B,E,Map<K,V>> createAccumulator()
      Specified by:
      createAccumulator in interface org.aksw.commons.collector.domain.Aggregator<B,E,K>
    • create

      public static <B, E, K, V, C extends org.aksw.commons.collector.domain.Aggregator<B, E, V>> AggMap2<B,E,K,V,C> create(Function<B,K> mapper, C subAgg)
    • create

      public static <B, E, K, V, C extends org.aksw.commons.collector.domain.Aggregator<B, E, V>> AggMap2<B,E,K,V,C> create(BiFunction<B,Long,K> mapper, C subAgg)