Interface Aggregator

All Known Implementing Classes:
AggAvg, AggAvgDistinct, AggCount, AggCountDistinct, AggCountVar, AggCountVarDistinct, AggCustom, AggGroupConcat, AggGroupConcatDistinct, AggMax, AggMaxDistinct, AggMedian, AggMedianDistinct, AggMin, AggMinDistinct, AggMode, AggModeDistinct, AggNull, AggregatorBase, AggSample, AggSampleDistinct, AggSum, AggSumDistinct

public interface Aggregator
An Aggregator is the processor for the whole result stream. BindingKeys identify which section of a group we're in.
  • Method Details

    • createAccumulator

      Accumulator createAccumulator()
      Create an accumulator for this aggregator
    • getValueEmpty

      org.apache.jena.graph.Node getValueEmpty()
      Value if there are no groups : return null for no result
    • toPrefixString

      String toPrefixString()
    • key

      String key()
    • getName

      String getName()
      Get the SPARQL name (COUNT, AVG etc)
    • getExprList

      ExprList getExprList()
    • copy

      Aggregator copy(ExprList exprs)
    • copyTransform

      Aggregator copyTransform(NodeTransform transform)
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(Object other)
      Overrides:
      equals in class Object
    • equals

      boolean equals(Aggregator other, boolean bySyntax)
      Consider this 'protected'
    • asSparqlExpr

      String asSparqlExpr(SerializationContext sCxt)
      Format as an (extended) SPARQL expression