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.String
asSparqlExpr(SerializationContext sCxt)
Format as an (extended) SPARQL expressionAggregator
copyTransform(NodeTransform transform)
abstract Accumulator
createAccumulator()
Create an accumulator for this aggregatorboolean
equals(java.lang.Object other)
ExprList
getExprList()
java.lang.String
getName()
Get the SPARQL name (COUNT, AVG etc)Node
getValue(Binding key)
abstract Node
getValueEmpty()
Value if there are no groups : return null for no resultabstract int
hashCode()
java.lang.String
key()
java.lang.String
toPrefixString()
java.lang.String
toString()
-
Methods inherited from interface org.apache.jena.sparql.expr.aggregate.Aggregator
copy, equals
-
-
-
-
Method Detail
-
createAccumulator
public abstract Accumulator createAccumulator()
Description copied from interface:Aggregator
Create an accumulator for this aggregator- Specified by:
createAccumulator
in interfaceAggregator
-
getValueEmpty
public abstract Node getValueEmpty()
Description copied from interface:Aggregator
Value if there are no groups : return null for no result- Specified by:
getValueEmpty
in interfaceAggregator
-
key
public java.lang.String key()
- Specified by:
key
in interfaceAggregator
-
copyTransform
public final Aggregator copyTransform(NodeTransform transform)
- Specified by:
copyTransform
in interfaceAggregator
-
getExprList
public ExprList getExprList()
- Specified by:
getExprList
in interfaceAggregator
-
getName
public java.lang.String getName()
Description copied from interface:Aggregator
Get the SPARQL name (COUNT, AVG etc)- Specified by:
getName
in interfaceAggregator
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
asSparqlExpr
public java.lang.String asSparqlExpr(SerializationContext sCxt)
Description copied from interface:Aggregator
Format as an (extended) SPARQL expression- Specified by:
asSparqlExpr
in interfaceAggregator
-
toPrefixString
public java.lang.String toPrefixString()
- Specified by:
toPrefixString
in interfaceAggregator
-
hashCode
public abstract int hashCode()
- Specified by:
hashCode
in interfaceAggregator
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object other)
- Specified by:
equals
in interfaceAggregator
- Overrides:
equals
in classjava.lang.Object
-
-