org.openrdf.repository.sail
Class SailQuery

java.lang.Object
  extended by org.openrdf.query.impl.AbstractQuery
      extended by org.openrdf.repository.sail.SailQuery
All Implemented Interfaces:
Query
Direct Known Subclasses:
SailBooleanQuery, SailGraphQuery, SailTupleQuery

public abstract class SailQuery
extends AbstractQuery

Author:
Arjohn Kampman

Nested Class Summary
protected  class SailQuery.QueryInterruptIteration
           
 
Field Summary
 
Fields inherited from class org.openrdf.query.impl.AbstractQuery
bindings, dataset, includeInferred, maxQueryTime
 
Constructor Summary
protected SailQuery(ParsedQuery parsedQuery, SailRepositoryConnection con)
           
 
Method Summary
protected  CloseableIteration<? extends BindingSet,QueryEvaluationException> enforceMaxQueryTime(CloseableIteration<? extends BindingSet,QueryEvaluationException> bindingsIter)
           
 Dataset getActiveDataset()
          Gets the "active" dataset for this query.
protected  SailRepositoryConnection getConnection()
           
 ParsedQuery getParsedQuery()
           
 String toString()
           
 
Methods inherited from class org.openrdf.query.impl.AbstractQuery
getBindings, getDataset, getIncludeInferred, getMaxQueryTime, removeBinding, setBinding, setDataset, setIncludeInferred, setMaxQueryTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SailQuery

protected SailQuery(ParsedQuery parsedQuery,
                    SailRepositoryConnection con)
Method Detail

getParsedQuery

public ParsedQuery getParsedQuery()

getConnection

protected SailRepositoryConnection getConnection()

enforceMaxQueryTime

protected CloseableIteration<? extends BindingSet,QueryEvaluationException> enforceMaxQueryTime(CloseableIteration<? extends BindingSet,QueryEvaluationException> bindingsIter)

getActiveDataset

public Dataset getActiveDataset()
Gets the "active" dataset for this query. The active dataset is either the dataset that has been specified using AbstractQuery.setDataset(Dataset) or the dataset that has been specified in the query, where the former takes precedence over the latter.

Returns:
The active dataset, or null if there is no dataset.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2008 Aduna. All Rights Reserved.