|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.expr.ExprNode
com.hp.hpl.jena.sparql.expr.ExprAggregator
public class ExprAggregator
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.
| Field Summary |
|---|
| Fields inherited from interface com.hp.hpl.jena.sparql.expr.Expr |
|---|
CMP_EQUAL, CMP_GREATER, CMP_INDETERMINATE, CMP_LESS, CMP_UNEQUAL |
| Constructor Summary | |
|---|---|
ExprAggregator(Var v,
Aggregator agg)
|
|
| Method Summary | |
|---|---|
Expr |
apply(ExprTransform transform)
|
ExprAggregator |
applyNodeTransform(NodeTransform transform)
Rewrite, applying a node->node transformation |
String |
asSparqlExpr()
|
Var |
asVar()
Convert to a Var variable. |
Expr |
copy(Var v)
|
ExprAggregator |
copySubstitute(Binding binding)
Deep copy with substitution |
boolean |
equals(Object other)
|
NodeValue |
eval(Binding binding,
FunctionEnv env)
Evaluate this expression against the binding |
Aggregator |
getAggregator()
|
ExprVar |
getAggVar()
|
ExprVar |
getExprVar()
Variable (or null) |
Var |
getVar()
|
int |
hashCode()
|
void |
setVar(Var v)
|
String |
toString()
|
void |
visit(ExprVisitor visitor)
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExprAggregator(Var v,
Aggregator agg)
| Method Detail |
|---|
public Var getVar()
public void setVar(Var v)
public Aggregator getAggregator()
public int hashCode()
hashCode in class ExprNodepublic boolean equals(Object other)
equals in class ExprNodepublic ExprVar getExprVar()
Expr
getExprVar in interface ExprgetExprVar in class ExprNodepublic Var asVar()
Expr
asVar in interface ExprasVar in class ExprNodepublic ExprVar getAggVar()
public String asSparqlExpr()
public ExprAggregator copySubstitute(Binding binding)
Expr
copySubstitute in interface ExprcopySubstitute in class ExprNodepublic ExprAggregator applyNodeTransform(NodeTransform transform)
Expr
applyNodeTransform in interface ExprapplyNodeTransform in class ExprNodepublic String toString()
toString in class ExprNodepublic Expr copy(Var v)
public NodeValue eval(Binding binding,
FunctionEnv env)
Expr
eval in interface Expreval in class ExprNodepublic Expr apply(ExprTransform transform)
public void visit(ExprVisitor visitor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||