org.openrdf.query
Interface Query

All Superinterfaces:
Operation
All Known Subinterfaces:
BooleanQuery, GraphQuery, TupleQuery
All Known Implementing Classes:
AbstractQuery, HTTPBooleanQuery, HTTPGraphQuery, HTTPQuery, HTTPTupleQuery, SailBooleanQuery, SailGraphQuery, SailQuery, SailTupleQuery, SPARQLBooleanQuery, SPARQLGraphQuery, SPARQLQuery, SPARQLTupleQuery

public interface Query
extends Operation

A query on a Repository that can be formulated in one of the supported query languages (for example SeRQL or SPARQL). It allows one to predefine bindings in the query to be able to reuse the same query with different bindings.

Author:
Arjohn Kampman, jeen
See Also:
RepositoryConnection

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 interface org.openrdf.query.Operation
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred
 

Method Detail

setMaxQueryTime

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.

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

getMaxQueryTime

int getMaxQueryTime()
Returns the maximum query evaluation time.

Returns:
The maximum query evaluation time, measured in seconds.
See Also:
setMaxQueryTime(int)


Copyright © 2001-2012 Aduna. All Rights Reserved.