org.openrdf.sesame.sail.query
Class SelectQuery
java.lang.Object
org.openrdf.sesame.sail.query.GraphPatternQuery
org.openrdf.sesame.sail.query.SelectQuery
- All Implemented Interfaces:
- Query
- public class SelectQuery
- extends GraphPatternQuery
Class representing a select-from-where query.
- Author:
- Arjohn Kampman
| Methods inherited from class org.openrdf.sesame.sail.query.GraphPatternQuery |
evaluate, getGraphPattern, getLimit, getOffset, getVariables, hasLimit, hasOffset, isDistinct, setDistinct, setGraphPattern, setLimit, setOffset |
SelectQuery
public SelectQuery(List projection,
GraphPattern graphPattern)
SelectQuery
public SelectQuery(boolean distinct,
List projection,
GraphPattern graphPattern)
SelectQuery
public SelectQuery(boolean distinct,
int offset,
int limit,
List projection,
GraphPattern graphPattern)
getProjection
public ProjectionElem[] getProjection()
setProjection
public void setProjection(List projection)
setProjection
public void setProjection(ProjectionElem[] projection)
getProjectionVariables
public void getProjectionVariables(Collection variables)
- Description copied from class:
GraphPatternQuery
- Gets all variables that are used in the projection of this
GraphPatternQuery.
- Specified by:
getProjectionVariables in class GraphPatternQuery
- Parameters:
variables - A Collection to add the Var objects to.
getColumnHeaders
public String[] getColumnHeaders()
- Description copied from interface:
Query
- Gets the headers for the results table that is produced by this query.
- Returns:
- An array containing as much strings as there are values in each
query result.
toString
public String toString()
Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.