Class AggMap<K,V>

java.lang.Object
org.aksw.jenax.arq.aggregation.AggMap<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
org.aksw.commons.collector.domain.Aggregator<org.apache.jena.sparql.engine.binding.Binding,org.apache.jena.sparql.function.FunctionEnv,Map<K,V>>, Agg<Map<K,V>>

public class AggMap<K,V> extends Object implements Agg<Map<K,V>>
A less general form of AggMap2 ; this class should be removed and AggMap2 renamed to this
Author:
raven
  • Constructor Summary

    Constructors
    Constructor
    Description
    AggMap(org.aksw.jenax.arq.util.binding.BindingMapper<K> mapper, Agg<V> subAgg)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <K, V> AggMap<K,V>
    create(org.aksw.jenax.arq.util.binding.BindingMapper<K> mapper, Agg<V> subAgg)
     
     
    Set<org.apache.jena.sparql.core.Var>
    An accumulator may declare the variable it references.

    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

    • AggMap

      public AggMap(org.aksw.jenax.arq.util.binding.BindingMapper<K> mapper, Agg<V> subAgg)
  • Method Details

    • createAccumulator

      public Acc<Map<K,V>> createAccumulator()
      Specified by:
      createAccumulator in interface Agg<K>
      Specified by:
      createAccumulator in interface org.aksw.commons.collector.domain.Aggregator<org.apache.jena.sparql.engine.binding.Binding,org.apache.jena.sparql.function.FunctionEnv,Map<K,V>>
    • getDeclaredVars

      public Set<org.apache.jena.sparql.core.Var> getDeclaredVars()
      Description copied from interface: Agg
      An accumulator may declare the variable it references. The variables can be derived from e.g. underlying Sparql expressions or sub aggregators.
      Specified by:
      getDeclaredVars in interface Agg<K>
      Returns:
    • create

      public static <K, V> AggMap<K,V> create(org.aksw.jenax.arq.util.binding.BindingMapper<K> mapper, Agg<V> subAgg)