org.openrdf.repository.http
Class HTTPQuery

java.lang.Object
  extended by org.openrdf.query.impl.AbstractOperation
      extended by org.openrdf.query.impl.AbstractQuery
          extended by org.openrdf.repository.http.HTTPQuery
All Implemented Interfaces:
Operation, Query
Direct Known Subclasses:
HTTPBooleanQuery, HTTPGraphQuery, HTTPTupleQuery

public abstract class HTTPQuery
extends AbstractQuery

Author:
Arjohn Kampman

Field Summary
protected  String baseURI
           
protected  org.openrdf.repository.http.HTTPRepositoryConnection httpCon
           
protected  QueryLanguage queryLanguage
           
protected  String queryString
           
 
Fields inherited from class org.openrdf.query.impl.AbstractQuery
maxQueryTime
 
Fields inherited from class org.openrdf.query.impl.AbstractOperation
bindings, dataset, includeInferred
 
Constructor Summary
HTTPQuery(org.openrdf.repository.http.HTTPRepositoryConnection con, QueryLanguage ql, String queryString, String baseURI)
           
 
Method Summary
protected  Binding[] getBindingsArray()
           
 void setMaxQueryTime(int maxQueryTime)
          Specifies the maximum time that a query is allowed to run.
 String toString()
           
 
Methods inherited from class org.openrdf.query.impl.AbstractQuery
getMaxQueryTime
 
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
 

Field Detail

httpCon

protected final org.openrdf.repository.http.HTTPRepositoryConnection httpCon

queryLanguage

protected final QueryLanguage queryLanguage

queryString

protected final String queryString

baseURI

protected final String baseURI
Constructor Detail

HTTPQuery

public HTTPQuery(org.openrdf.repository.http.HTTPRepositoryConnection con,
                 QueryLanguage ql,
                 String queryString,
                 String baseURI)
Method Detail

getBindingsArray

protected Binding[] getBindingsArray()

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
Overrides:
setMaxQueryTime in class AbstractQuery
Parameters:
maxQueryTime - The maximum query time, measured in seconds. A negative or zero value indicates an unlimited query time (which is the default).

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2012 Aduna. All Rights Reserved.