org.apache.clerezza.rdf.core.sparql.query
Interface QueryWithSolutionModifier

All Superinterfaces:
Query
All Known Subinterfaces:
ConstructQuery, DescribeQuery, SelectQuery
All Known Implementing Classes:
SimpleConstructQuery, SimpleDescribeQuery, SimpleQueryWithSolutionModifier, SimpleSelectQuery

public interface QueryWithSolutionModifier
extends Query

This interface represents a SPARQL query which contains a specification of solution modifiers: ORDER BY, OFFSET, and LIMIT.

Author:
hasan
See Also:
SPARQL Query Language: 9 Solution Sequences and Modifiers

Method Summary
 int getLimit()
          Gets the maximum number of results to be returned by the query.
 int getOffset()
          Gets the numeric offset of the first row to be returned by the query.
 List<OrderCondition> getOrderConditions()
          Gets the list of required ordering conditions in decreasing ordering priority.
 
Methods inherited from interface org.apache.clerezza.rdf.core.sparql.query.Query
getDataSet, getQueryPattern, toString
 

Method Detail

getOrderConditions

List<OrderCondition> getOrderConditions()

Gets the list of required ordering conditions in decreasing ordering priority.

Returns:
A list of OrderConditions, in order of priority.
See Also:
SPARQL Query Language: 9.1 ORDER BY

getOffset

int getOffset()

Gets the numeric offset of the first row to be returned by the query. The default offset is 0, meaning to start at the beginning.

Returns:
The number of rows to skip in the result.
See Also:
SPARQL Query Language: 9.4 OFFSET

getLimit

int getLimit()

Gets the maximum number of results to be returned by the query. A limit of -1 means no limit (return all results). A limit of 0 means that no results should be returned.

Returns:
The maximum number of rows to returned by the query.
See Also:
SPARQL Query Language: 9.5 LIMIT


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.