|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.impl.AbstractQuery
public abstract class AbstractQuery
Abstract super class of all query types.
| Field Summary | |
|---|---|
protected MapBindingSet |
bindings
|
protected Dataset |
dataset
|
protected boolean |
includeInferred
|
protected int |
maxQueryTime
|
| Constructor Summary | |
|---|---|
protected |
AbstractQuery()
Creates a new query object. |
| Method Summary | |
|---|---|
BindingSet |
getBindings()
Retrieves the bindings that have been set on this query. |
Dataset |
getDataset()
Gets the dataset that has been set using Query.setDataset(Dataset), if
any. |
boolean |
getIncludeInferred()
Returns whether or not this query will return inferred statements (if any are present in the repository). |
int |
getMaxQueryTime()
Returns the maximum query evaluation time. |
void |
removeBinding(String name)
Removes a previously set binding on the supplied variable. |
void |
setBinding(String name,
Value value)
Binds the specified variable to the supplied value. |
void |
setDataset(Dataset dataset)
Specifies the dataset against which to evaluate a query, overriding any dataset that is specified in the query itself. |
void |
setIncludeInferred(boolean includeInferred)
Determine whether evaluation results of this query should include inferred statements (if any inferred statements are present in the repository). |
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 |
| Methods inherited from interface org.openrdf.query.Query |
|---|
evaluate |
| Field Detail |
|---|
protected MapBindingSet bindings
protected Dataset dataset
protected boolean includeInferred
protected int maxQueryTime
| Constructor Detail |
|---|
protected AbstractQuery()
| Method Detail |
|---|
public void setBinding(String name,
Value value)
Query
setBinding in interface Queryname - The name of the variable that should be bound.value - The (new) value for the specified variable.public void removeBinding(String name)
Query
removeBinding in interface Queryname - The name of the variable from which the binding is to be removed.public BindingSet getBindings()
Query
getBindings in interface QueryQuery.setBinding(String, Value)public void setDataset(Dataset dataset)
Query
setDataset in interface Querypublic Dataset getDataset()
QueryQuery.setDataset(Dataset), if
any.
getDataset in interface Querypublic void setIncludeInferred(boolean includeInferred)
Query
setIncludeInferred in interface QueryincludeInferred - indicates whether inferred statements should included in the
result.public boolean getIncludeInferred()
Query
getIncludeInferred in interface Querypublic void setMaxQueryTime(int maxQueryTime)
QueryQueryInterruptedExceptions.
setMaxQueryTime in interface QuerymaxQueryTime - The maximum query time, measured in seconds. A negative or zero
value indicates an unlimited query time (which is the default).public int getMaxQueryTime()
Query
getMaxQueryTime in interface Query#maxQueryTime
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||