Module org.apache.jena.querybuilder
Interface SolutionModifierClause<T extends AbstractQueryBuilder<T>>
- Type Parameters:
T
- The Builder type that the clause is part of.
- All Known Implementing Classes:
AskBuilder
,ConstructBuilder
,DescribeBuilder
,SelectBuilder
public interface SolutionModifierClause<T extends AbstractQueryBuilder<T>>
Interface that defines the SolutionClause as per
http://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rSolutionModifier
-
Method Summary
Modifier and TypeMethodDescriptionaddGroupBy
(Object groupBy) Add a variable to the group by clause.addGroupBy
(Object var, String expr) Add var and expression to the group by clause.addGroupBy
(Object var, org.apache.jena.sparql.expr.Expr expr) Add var and expression to the group by clause.addGroupBy
(org.apache.jena.sparql.expr.Expr groupBy) Add an expression to the group by clause.Add a having expression.Add a having expression.addHaving
(org.apache.jena.sparql.expr.Expr expression) Add a having expression.addOrderBy
(Object orderBy) Add an ascending order by.addOrderBy
(Object orderBy, Order order) Add an order by with direction specified.addOrderBy
(org.apache.jena.query.SortCondition orderBy) Add an ascending order by.addOrderBy
(org.apache.jena.sparql.expr.Expr orderBy) Add an ascending order by.addOrderBy
(org.apache.jena.sparql.expr.Expr orderBy, Order order) Add an order by with direction specified.Get the Solution modifier for this clause.setLimit
(int limit) Set the limit.setOffset
(int offset) Set the offset.
-
Method Details
-
addOrderBy
Add an ascending order by. Use ExprFactory or NodeValue static or the AbstractQueryBuilder.makeExpr methods to create the expression.- Parameters:
orderBy
- The expression to order by.- Returns:
- This builder for chaining.
- See Also:
-
addOrderBy
Add an ascending order by.- Parameters:
orderBy
- The object to order by.- Returns:
- This builder for chaining.
-
addOrderBy
Add an ascending order by.- Parameters:
orderBy
- The SortCondition to order by.- Returns:
- This builder for chaining.
-
addOrderBy
Add an order by with direction specified.- Parameters:
orderBy
- The expression to order by.order
- The direction to order.- Returns:
- This builder for chaining.
-
addOrderBy
Add an order by with direction specified.- Parameters:
orderBy
- The object to order by.order
- The direction to order.- Returns:
- This builder for chaining.
-
addGroupBy
Add a variable to the group by clause.- Parameters:
groupBy
- The object to group by.- Returns:
- This builder for chaining.
-
addGroupBy
Add an expression to the group by clause. The expression may be created from a string using the makeExpr() method.- Parameters:
groupBy
- The expression to add.
-
addGroupBy
Add var and expression to the group by clause.- Parameters:
var
- The variable to add.expr
- The expression to add.
-
addGroupBy
Add var and expression to the group by clause.- Parameters:
var
- The variable to add.expr
- The expression to add.
-
addHaving
Add a having expression.- Parameters:
expression
- Expression to evaluate for the having.- Returns:
- This builder for chaining.
-
addHaving
Add a having expression. Use ExprFactory or NodeValue static or the AbstractQueryBuilder.makeExpr methods to create the expression.- Parameters:
expression
- Expression to evaluate for the having.- Returns:
- This builder for chaining.
- See Also:
-
addHaving
Add a having expression.- Parameters:
var
- the variable to have.- Returns:
- This builder for chaining.
-
setLimit
Set the limit. Setting the limit to 0 (zero) sets no limit.- Parameters:
limit
- the maximum number of results to return.- Returns:
- This builder for chaining.
-
setOffset
Set the offset. Setting the offset to 0 (zero) sets no offset.- Parameters:
offset
- the number of results to skip before returning results..- Returns:
- This builder for chaining.
-
getSolutionModifierHandler
SolutionModifierHandler getSolutionModifierHandler()Get the Solution modifier for this clause.- Returns:
- The SolutionModifierHandler the clause is using.
-