public class FedXBooleanQuery extends SailBooleanQuery
SailBooleanQuery which takes care for tracking the
FedXRepositoryConnection.BINDING_ORIGINAL_MAX_EXECUTION_TIME during evaluation.
All methods are delegated to the actual SailBooleanQuery.AbstractParserQuery.QueryInterruptIterationQuery.QueryType| Modifier and Type | Field and Description |
|---|---|
protected SailBooleanQuery |
delegate |
DEFAULT_EXPLANATION_EXECUTION_TIMEOUTbindings, dataset, includeInferred| Constructor and Description |
|---|
FedXBooleanQuery(SailBooleanQuery delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBindings()
Removes all previously set bindings.
|
boolean |
equals(Object obj) |
boolean |
evaluate() |
Dataset |
getActiveDataset()
Gets the "active" dataset for this query.
|
BindingSet |
getBindings()
Retrieves the bindings that have been set on this operation.
|
Dataset |
getDataset()
Gets the dataset that has been set using
Operation.setDataset(Dataset), if any. |
boolean |
getIncludeInferred()
Returns whether or not this operation will return inferred statements (if any are present in the repository).
|
int |
getMaxExecutionTime()
Returns the maximum operation execution time.
|
int |
getMaxQueryTime()
Returns the maximum query evaluation time.
|
ParsedBooleanQuery |
getParsedQuery() |
int |
hashCode() |
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 execute an operation, overriding any dataset that is specified in the
operation itself.
|
void |
setIncludeInferred(boolean includeInferred)
Determine whether evaluation results of this operation should include inferred statements (if any inferred
statements are present in the repository).
|
void |
setMaxExecutionTime(int maxExecutionTimeSeconds)
Specifies the maximum time that an operation is allowed to run.
|
void |
setMaxQueryTime(int maxQueryTime)
Specifies the maximum time that a query is allowed to run.
|
String |
toString() |
explain, getConnectionenforceMaxQueryTimeprotected final SailBooleanQuery delegate
public FedXBooleanQuery(SailBooleanQuery delegate)
public boolean evaluate()
throws QueryEvaluationException
evaluate in interface BooleanQueryevaluate in class SailBooleanQueryQueryEvaluationExceptionpublic void setMaxQueryTime(int maxQueryTime)
QueryQueryInterruptedExceptions.setMaxQueryTime in interface QuerysetMaxQueryTime in class AbstractQuerymaxQueryTime - The maximum query time, measured in seconds. A negative or zero value indicates an unlimited
query time (which is the default).public int getMaxQueryTime()
QuerygetMaxQueryTime in interface QuerygetMaxQueryTime in class AbstractQueryQuery.setMaxQueryTime(int)public void setBinding(String name, Value value)
OperationsetBinding in interface OperationsetBinding in class AbstractOperationname - The name of the variable that should be bound.value - The (new) value for the specified variable.public ParsedBooleanQuery getParsedQuery()
getParsedQuery in class SailBooleanQuerypublic void removeBinding(String name)
OperationremoveBinding in interface OperationremoveBinding in class AbstractOperationname - The name of the variable from which the binding is to be removed.public void clearBindings()
OperationclearBindings in interface OperationclearBindings in class AbstractOperationpublic BindingSet getBindings()
OperationgetBindings in interface OperationgetBindings in class AbstractOperationOperation.setBinding(String, Value)public void setDataset(Dataset dataset)
OperationsetDataset in interface OperationsetDataset in class AbstractOperationpublic Dataset getDataset()
OperationOperation.setDataset(Dataset), if any.getDataset in interface OperationgetDataset in class AbstractOperationpublic void setIncludeInferred(boolean includeInferred)
OperationsetIncludeInferred in interface OperationsetIncludeInferred in class AbstractOperationincludeInferred - indicates whether inferred statements should be included in the result.public Dataset getActiveDataset()
AbstractParserQueryAbstractOperation.setDataset(Dataset) or the dataset that has been specified in the query, where the former takes
precedence over the latter.getActiveDataset in class AbstractParserQuerypublic boolean getIncludeInferred()
OperationgetIncludeInferred in interface OperationgetIncludeInferred in class AbstractOperationpublic void setMaxExecutionTime(int maxExecutionTimeSeconds)
OperationQueryInterruptedExceptions
or UpdateExecutionExceptions (depending on whether the operation is a query or an update).setMaxExecutionTime in interface OperationsetMaxExecutionTime in class AbstractOperationmaxExecutionTimeSeconds - The maximum query time, measured in seconds. A negative or zero value indicates an
unlimited execution time (which is the default).public int getMaxExecutionTime()
OperationgetMaxExecutionTime in interface OperationgetMaxExecutionTime in class AbstractOperationOperation.setMaxExecutionTime(int)public String toString()
toString in class AbstractParserQueryCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.