virtuoso.sesame2.driver
Class VirtuosoQuery

java.lang.Object
  extended by virtuoso.sesame2.driver.VirtuosoOperation
      extended by virtuoso.sesame2.driver.VirtuosoQuery
All Implemented Interfaces:
org.openrdf.query.Operation, org.openrdf.query.Query
Direct Known Subclasses:
VirtuosoBooleanQuery, VirtuosoGraphQuery, VirtuosoTupleQuery

public class VirtuosoQuery
extends VirtuosoOperation
implements org.openrdf.query.Query


Constructor Summary
VirtuosoQuery()
           
 
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 virtuoso.sesame2.driver.VirtuosoOperation
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.Operation
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred
 

Constructor Detail

VirtuosoQuery

public VirtuosoQuery()
Method Detail

setMaxQueryTime

public void setMaxQueryTime(int maxQueryTime)
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 org.openrdf.query.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()
Returns the maximum query evaluation time.

Specified by:
getMaxQueryTime in interface org.openrdf.query.Query
Returns:
The maximum query evaluation time, measured in seconds.
See Also:
maxQueryTime