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 Details

  • 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(BindingMapper<K> mapper, Agg<V> subAgg)