org.apache.clerezza.rdf.core.sparql.query.impl
Class SimpleQueryWithSolutionModifier

java.lang.Object
  extended by org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQuery
      extended by org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQueryWithSolutionModifier
All Implemented Interfaces:
Query, QueryWithSolutionModifier
Direct Known Subclasses:
SimpleConstructQuery, SimpleDescribeQuery, SimpleSelectQuery

public abstract class SimpleQueryWithSolutionModifier
extends SimpleQuery
implements QueryWithSolutionModifier

Author:
hasan

Constructor Summary
SimpleQueryWithSolutionModifier()
           
 
Method Summary
 void addOrderCondition(OrderCondition orderCondition)
           
 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.
 void setLimit(int limit)
           
 void setOffset(int offset)
           
 
Methods inherited from class org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQuery
addDefaultGraph, addNamedGraph, getDataSet, getQueryPattern, setQueryPattern, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.clerezza.rdf.core.sparql.query.Query
getDataSet, getQueryPattern, toString
 

Constructor Detail

SimpleQueryWithSolutionModifier

public SimpleQueryWithSolutionModifier()
Method Detail

getOrderConditions

public List<OrderCondition> getOrderConditions()
Description copied from interface: QueryWithSolutionModifier

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

Specified by:
getOrderConditions in interface QueryWithSolutionModifier
Returns:
A list of OrderConditions, in order of priority.
See Also:
SPARQL Query Language: 9.1 ORDER BY

getOffset

public int getOffset()
Description copied from interface: QueryWithSolutionModifier

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.

Specified by:
getOffset in interface QueryWithSolutionModifier
Returns:
The number of rows to skip in the result.
See Also:
SPARQL Query Language: 9.4 OFFSET

getLimit

public int getLimit()
Description copied from interface: QueryWithSolutionModifier

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.

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

addOrderCondition

public void addOrderCondition(OrderCondition orderCondition)

setOffset

public void setOffset(int offset)

setLimit

public void setLimit(int limit)


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