org.openrdf.repository.sail
Class SailQuery

java.lang.Object
  extended by org.openrdf.query.impl.AbstractOperation
      extended by org.openrdf.query.impl.AbstractQuery
          extended by org.openrdf.repository.sail.SailQuery
All Implemented Interfaces:
Operation, 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
maxQueryTime
 
Fields inherited from class org.openrdf.query.impl.AbstractOperation
bindings, dataset, includeInferred
 
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
getMaxQueryTime, setMaxQueryTime
 
Methods inherited from class org.openrdf.query.impl.AbstractOperation
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.Operation
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred
 

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 AbstractOperation.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-2012 Aduna. All Rights Reserved.