org.openrdf.query.impl
Class AbstractQuery

java.lang.Object
  extended by org.openrdf.query.impl.AbstractOperation
      extended by org.openrdf.query.impl.AbstractQuery
All Implemented Interfaces:
Operation, Query
Direct Known Subclasses:
HTTPQuery, SailQuery

public abstract class AbstractQuery
extends AbstractOperation
implements Query

Abstract super class of all query types.


Field Summary
protected  int maxQueryTime
           
 
Fields inherited from class org.openrdf.query.impl.AbstractOperation
bindings, dataset, includeInferred
 
Constructor Summary
protected AbstractQuery()
          Creates a new query object.
 
Method Summary
 int getMaxQueryTime()
          Returns the maximum query evaluation time.
 void setMaxQueryTime(int maxQueryTime)
          Specifies the maximum time that a query is allowed to run.
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.Operation
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred
 

Field Detail

maxQueryTime

protected int maxQueryTime
Constructor Detail

AbstractQuery

protected AbstractQuery()
Creates a new query object.

Method Detail

setMaxQueryTime

public void setMaxQueryTime(int maxQueryTime)
Description copied from interface: Query
Specifies the maximum time that a query is allowed to run. The query will be interrupted when it exceeds the time limit. Any consecutive requests to fetch query results will result in QueryInterruptedExceptions.

Specified by:
setMaxQueryTime in interface Query
Parameters:
maxQueryTime - The maximum query time, measured in seconds. A negative or zero value indicates an unlimited query time (which is the default).

getMaxQueryTime

public int getMaxQueryTime()
Description copied from interface: Query
Returns the maximum query evaluation time.

Specified by:
getMaxQueryTime in interface Query
Returns:
The maximum query evaluation time, measured in seconds.
See Also:
Query.setMaxQueryTime(int)


Copyright © 2001-2012 Aduna. All Rights Reserved.