com.hp.hpl.jena.sparql.expr
Class ExprAggregator
java.lang.Object
com.hp.hpl.jena.sparql.expr.ExprNode
com.hp.hpl.jena.sparql.expr.ExprAggregator
- All Implemented Interfaces:
- Expr
public class ExprAggregator
- extends ExprNode
Group aggregation functions calculated a value during grouping and
placed in the output binding. This class is relationship of
an aggregation expression and that variable. Evaluation returns
the variable's bound value.
| Methods inherited from class com.hp.hpl.jena.sparql.expr.ExprNode |
copySubstitute, deepCopy, getConstant, getExpr, getFunction, getGraphPattern, getVarName, getVarNamesMentioned, getVarsMentioned, isConstant, isExpr, isFunction, isGraphPattern, isSatisfied, isVariable, varNamesMentioned, varsMentioned |
ExprAggregator
public ExprAggregator(Var v,
Aggregator agg)
getVar
public Var getVar()
setVar
public void setVar(Var v)
getAggregator
public Aggregator getAggregator()
hashCode
public int hashCode()
- Specified by:
hashCode in class ExprNode
equals
public boolean equals(Object other)
- Specified by:
equals in class ExprNode
getExprVar
public ExprVar getExprVar()
- Description copied from interface:
Expr
- Variable (or null)
- Specified by:
getExprVar in interface Expr- Overrides:
getExprVar in class ExprNode
asVar
public Var asVar()
- Description copied from interface:
Expr
- Convert to a Var variable.
- Specified by:
asVar in interface Expr- Overrides:
asVar in class ExprNode
getAggVar
public ExprVar getAggVar()
asSparqlExpr
public String asSparqlExpr()
copySubstitute
public ExprAggregator copySubstitute(Binding binding,
boolean foldConstants)
- Specified by:
copySubstitute in interface Expr- Specified by:
copySubstitute in class ExprNode
applyNodeTransform
public ExprAggregator applyNodeTransform(NodeTransform transform)
- Description copied from interface:
Expr
- Rewrite, applying a node->node transformation
- Specified by:
applyNodeTransform in interface Expr- Specified by:
applyNodeTransform in class ExprNode
toString
public String toString()
- Overrides:
toString in class ExprNode
copy
public Expr copy(Var v)
eval
public NodeValue eval(Binding binding,
FunctionEnv env)
- Description copied from interface:
Expr
- Evaluate this expression against the binding
- Specified by:
eval in interface Expr- Specified by:
eval in class ExprNode
apply
public Expr apply(ExprTransform transform)
visit
public void visit(ExprVisitor visitor)
Licenced under the Apache License, Version 2.0