org.openrdf.query.impl
Class AbstractQuery
java.lang.Object
org.openrdf.query.impl.AbstractOperation
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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxQueryTime
protected int maxQueryTime
AbstractQuery
protected AbstractQuery()
- Creates a new query object.
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.