| Constructor and Description |
|---|
SolutionModifierHandler(Query query)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(SolutionModifierHandler solutionModifier)
Copy all the modifications from the Solution Modifier argument
|
void |
addGroupBy(Expr expr)
Add an expression to the group by clause.
|
void |
addGroupBy(Var var)
Add a node to the group by clause.
|
void |
addGroupBy(Var var,
Expr expr)
Add var and expression to the group by clause.
|
void |
addHaving(Expr expr)
Add an expression to the having clause.
|
void |
addHaving(String expression)
Add a having expression.
|
void |
addHaving(Var var)
Add a variable to the having clause.
|
void |
addOrderBy(Expr expr)
Add an expression to the order by clause.
|
void |
addOrderBy(Expr expr,
Order order)
Add an expression to the order by clause.
|
void |
addOrderBy(SortCondition condition)
Add an order by clause
|
void |
addOrderBy(Var var)
Add a var to the order by clause.
|
void |
addOrderBy(Var var,
Order order)
Add a var to the order by clause.
|
void |
build()
Called by the build process for this handler to perform any adjustments to the query before
the build completes.
|
void |
setLimit(int limit)
Set the limit for the number of results to return.
|
void |
setOffset(int offset)
Set the offset for the results to return.
|
void |
setVars(Map<Var,Node> values)
Set the values for variables managed by the handler implementation.
|
public SolutionModifierHandler(Query query)
query - The query to modify.public void addAll(SolutionModifierHandler solutionModifier)
solutionModifier - The solution modifier to copy from.public void addOrderBy(SortCondition condition)
condition - The SortCondition to add to the order by.public void addOrderBy(Expr expr)
expr - The expression to add.public void addOrderBy(Expr expr, Order order)
expr - The expression to add.order - The direction of the ordering.public void addOrderBy(Var var)
var - The var to use for sortingpublic void addOrderBy(Var var, Order order)
var - The var to sort by.order - The direction of the ordering.public void addGroupBy(Expr expr)
expr - The expression to add.public void addGroupBy(Var var)
var - The variable to add.public void addGroupBy(Var var, Expr expr)
var - The variable to add.expr - The expression to add.public void addHaving(String expression) throws ParseException
expression - The expression to addParseException - If the expression can not be parsed.public void addHaving(Var var)
var - The variable to add.public void addHaving(Expr expr)
expr - The expression to add.public void setLimit(int limit)
limit - The limit to set.public void setOffset(int offset)
offset - The offset to set.public void setVars(Map<Var,Node> values)
HandlerLicensed under the Apache License, Version 2.0