Class AggregatorBase
- java.lang.Object
-
- org.apache.jena.sparql.expr.aggregate.AggregatorBase
-
- All Implemented Interfaces:
Aggregator
- Direct Known Subclasses:
AggAvg,AggAvgDistinct,AggCount,AggCountDistinct,AggCountVar,AggCountVarDistinct,AggCustom,AggGroupConcat,AggGroupConcatDistinct,AggMax,AggMaxDistinct,AggMedian,AggMedianDistinct,AggMin,AggMinDistinct,AggMode,AggModeDistinct,AggNull,AggSample,AggSampleDistinct,AggSum,AggSumDistinct
public abstract class AggregatorBase extends java.lang.Object implements Aggregator
Aggregate that does everything except the per-group aggregation that is needed for each operation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringasSparqlExpr(SerializationContext sCxt)Format as an (extended) SPARQL expressionAggregatorcopyTransform(NodeTransform transform)abstract AccumulatorcreateAccumulator()Create an accumulator for this aggregatorbooleanequals(java.lang.Object other)ExprListgetExprList()java.lang.StringgetName()Get the SPARQL name (COUNT, AVG etc)NodegetValue(Binding key)abstract NodegetValueEmpty()Value if there are no groups : return null for no resultabstract inthashCode()java.lang.Stringkey()java.lang.StringtoPrefixString()java.lang.StringtoString()-
Methods inherited from interface org.apache.jena.sparql.expr.aggregate.Aggregator
copy, equals
-
-
-
-
Method Detail
-
createAccumulator
public abstract Accumulator createAccumulator()
Description copied from interface:AggregatorCreate an accumulator for this aggregator- Specified by:
createAccumulatorin interfaceAggregator
-
getValueEmpty
public abstract Node getValueEmpty()
Description copied from interface:AggregatorValue if there are no groups : return null for no result- Specified by:
getValueEmptyin interfaceAggregator
-
key
public java.lang.String key()
- Specified by:
keyin interfaceAggregator
-
copyTransform
public final Aggregator copyTransform(NodeTransform transform)
- Specified by:
copyTransformin interfaceAggregator
-
getExprList
public ExprList getExprList()
- Specified by:
getExprListin interfaceAggregator
-
getName
public java.lang.String getName()
Description copied from interface:AggregatorGet the SPARQL name (COUNT, AVG etc)- Specified by:
getNamein interfaceAggregator
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
asSparqlExpr
public java.lang.String asSparqlExpr(SerializationContext sCxt)
Description copied from interface:AggregatorFormat as an (extended) SPARQL expression- Specified by:
asSparqlExprin interfaceAggregator
-
toPrefixString
public java.lang.String toPrefixString()
- Specified by:
toPrefixStringin interfaceAggregator
-
hashCode
public abstract int hashCode()
- Specified by:
hashCodein interfaceAggregator- Overrides:
hashCodein classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object other)
- Specified by:
equalsin interfaceAggregator- Overrides:
equalsin classjava.lang.Object
-
-