Class AggCustom
- java.lang.Object
-
- org.apache.jena.sparql.expr.aggregate.AggregatorBase
-
- org.apache.jena.sparql.expr.aggregate.AggCustom
-
- All Implemented Interfaces:
Aggregator
public class AggCustom extends AggregatorBase
Syntax element and framework execution for custom aggregates.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringasSparqlExpr(SerializationContext sCxt)Format as an (extended) SPARQL expressionAggregatorcopy(ExprList exprs)static AccumulatorcreateAccNull()AccumulatorcreateAccumulator()Create an accumulator for this aggregatorbooleanequals(Aggregator other, boolean bySyntax)Consider this 'protected'ExprgetExpr()java.lang.StringgetIRI()NodegetValueEmpty()Value if there are no groups : return null for no resultinthashCode()java.lang.StringtoPrefixString()-
Methods inherited from class org.apache.jena.sparql.expr.aggregate.AggregatorBase
copyTransform, equals, getExprList, getName, getValue, key, toString
-
-
-
-
Constructor Detail
-
AggCustom
public AggCustom(java.lang.String iri, boolean distinct, ExprList exprs)
-
-
Method Detail
-
copy
public Aggregator copy(ExprList exprs)
-
asSparqlExpr
public java.lang.String asSparqlExpr(SerializationContext sCxt)
Description copied from interface:AggregatorFormat as an (extended) SPARQL expression- Specified by:
asSparqlExprin interfaceAggregator- Overrides:
asSparqlExprin classAggregatorBase
-
toPrefixString
public java.lang.String toPrefixString()
- Specified by:
toPrefixStringin interfaceAggregator- Overrides:
toPrefixStringin classAggregatorBase
-
createAccumulator
public Accumulator createAccumulator()
Description copied from interface:AggregatorCreate an accumulator for this aggregator- Specified by:
createAccumulatorin interfaceAggregator- Specified by:
createAccumulatorin classAggregatorBase
-
getValueEmpty
public Node getValueEmpty()
Description copied from interface:AggregatorValue if there are no groups : return null for no result- Specified by:
getValueEmptyin interfaceAggregator- Specified by:
getValueEmptyin classAggregatorBase
-
getExpr
public Expr getExpr()
-
getIRI
public java.lang.String getIRI()
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceAggregator- Specified by:
hashCodein classAggregatorBase
-
equals
public boolean equals(Aggregator other, boolean bySyntax)
Description copied from interface:AggregatorConsider this 'protected'
-
createAccNull
public static Accumulator createAccNull()
-
-