| Constructor and Description |
|---|
SelectHandler(AggregationHandler aggHandler)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(SelectHandler selectHandler)
Add all the variables from the select handler variable.
|
void |
addVar(Expr expr,
Var var)
Add an Expression as variable to the select.
|
void |
addVar(String expression,
Var var)
Add an Expression as variable to the select.
|
void |
addVar(Var var)
Add a variable to the select.
|
void |
build()
Called by the build process for this handler to perform any adjustments to the query before
the build completes.
|
VarExprList |
getProject()
Return the projected var expression list.
|
List<Var> |
getVars()
Get the list of variables from the query.
|
void |
setDistinct(boolean state)
Set the distinct flag.
|
void |
setReduced(boolean state)
Set the reduced flag.
|
void |
setVars(Map<Var,Node> values)
Set the values for variables managed by the handler implementation.
|
public SelectHandler(AggregationHandler aggHandler)
aggHandler - The aggregate handler that wraps the query we want to handle.public void setDistinct(boolean state)
state - the state to set the distinct flag to.public void setReduced(boolean state)
state - the state to set the reduced flag to.public void addVar(Var var)
null the
variables are set to star.var - The variable to add.public void addVar(String expression, Var var)
expression - The expression as a string.var - The variable to add.public void addVar(Expr expr, Var var)
expr - The expression to add.var - The variable to add.public List<Var> getVars()
public VarExprList getProject()
public void addAll(SelectHandler selectHandler)
selectHandler - The select handler to copy the variables from.public void setVars(Map<Var,Node> values)
HandlerLicensed under the Apache License, Version 2.0