public class QueryInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
done |
protected static AtomicInteger |
NEXT_QUERY_ID |
protected Set<ParallelTask<?>> |
scheduledSubtasks |
Constructor and Description |
---|
QueryInfo(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
FederationContext federationContext) |
QueryInfo(String query,
QueryType queryType,
boolean incluedInferred,
FederationContext federationContext) |
QueryInfo(String query,
QueryType queryType,
int maxExecutionTime,
boolean includeInferred,
FederationContext federationContext) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Mark the query as aborted and abort all scheduled (future) tasks known at this point in time.
|
protected void |
abortScheduledTasks()
Abort any scheduled future tasks
|
void |
close()
Close this query.
|
boolean |
equals(Object obj) |
FederationContext |
getFederationContext() |
boolean |
getIncludeInferred() |
long |
getMaxRemainingTimeMS() |
String |
getQuery() |
BigInteger |
getQueryID() |
QueryType |
getQueryType() |
int |
hashCode() |
void |
registerScheduledTask(ParallelTask<?> task)
Register a new scheduled task for this query.
|
protected static final AtomicInteger NEXT_QUERY_ID
protected boolean done
protected Set<ParallelTask<?>> scheduledSubtasks
public QueryInfo(String query, QueryType queryType, boolean incluedInferred, FederationContext federationContext)
public QueryInfo(String query, QueryType queryType, int maxExecutionTime, boolean includeInferred, FederationContext federationContext)
query
- queryType
- maxExecutionTime
- the maximum explicit query time in seconds, if 0 use
FedXConfig.getEnforceMaxQueryTime()
includeInferred
- whether to include inferred statementsfederationContext
- the FederationContext
public QueryInfo(Resource subj, IRI pred, Value obj, boolean includeInferred, FederationContext federationContext)
public BigInteger getQueryID()
public String getQuery()
public QueryType getQueryType()
public boolean getIncludeInferred()
public FederationContext getFederationContext()
FederationContext
in which this query is executedpublic long getMaxRemainingTimeMS()
public void registerScheduledTask(ParallelTask<?> task) throws QueryEvaluationException
task
- QueryEvaluationException
- if the query has been aborted or closedpublic void abort()
public void close()
protected void abortScheduledTasks()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.