public interface QueryInfo
Modifier and Type | Interface and Description |
---|---|
static class |
QueryInfo.Status |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_QUERY_TYPE |
static long |
NO_TIME |
Modifier and Type | Method and Description |
---|---|
String |
getDB()
Returns the name of the database this query is running on.
|
long |
getEndTime()
Returns the time in milliseconds when the execution of this query ended or
NO_TIME if the execution did
not end. |
long |
getExecutionTime()
Returns the time in milliseconds that has taken for this query to be executed.
|
String |
getID()
Returns a unique ID for the query.
|
String |
getKernelID()
Returns the ID associated to the kernel that created the query.
|
String |
getQuery()
Returns the SPARQL query string.
|
String |
getQueryType()
Returns the type of query which is executing
|
String |
getReasoningSchema()
Return the active reasoning schema
|
long |
getStartTime()
Returns the time in milliseconds when the execution of this query started or
NO_TIME if the execution
did not start. |
QueryInfo.Status |
getStatus()
Returns the status of the query execution.
|
long |
getTimeout()
Return the timeout value in milliseconds for this query or
NO_TIME is there is not timeout defined for
this query. |
String |
getUser()
Returns the name of the user who is executing this query.
|
default boolean |
isEnded()
Returns
true if the execution of this query ended. |
boolean |
isReasoningEnabled()
Returns whether reasoning is enabled for this query.
|
default boolean |
isRunning()
Returns
true if the execution of this query started and did not end. |
default boolean |
isStarted()
Returns
true if the execution of this query started. |
static final String DEFAULT_QUERY_TYPE
static final long NO_TIME
String getKernelID()
String getID()
String getQuery()
String getDB()
String getUser()
boolean isReasoningEnabled()
String getReasoningSchema()
long getStartTime()
NO_TIME
if the execution
did not start. The start time is the exact time when the execution starts on the server which happens after
client connection is established, permissions for running the query has been checked, and parsing the query
string is completed.long getEndTime()
NO_TIME
if the execution did
not end. The end time is the time when the last solution for the query has been computed on the server. The
client might receive the results at a time later than this.long getExecutionTime()
NO_TIME
. If the query is still running this function will return the elapsed since
the execution of this query started which is equivalent to
System.currentTimeMillis() - getStartTime()
and will return a different value over time. If the
query execution is finished then the result will be equivalent to getEndTime() - getStartTime()
.long getTimeout()
NO_TIME
is there is not timeout defined for
this query. When the execution time for a query exceeds the timeout value, the query is killed automatically.
Timeout value is determined globally by the QUERY_TIMEOUT configuration option and
can be overridden for a database using the DatabaseOptions.QUERY_TIMEOUT
option.default boolean isStarted()
true
if the execution of this query started.default boolean isEnded()
true
if the execution of this query ended.default boolean isRunning()
true
if the execution of this query started and did not end.QueryInfo.Status getStatus()
String getQueryType()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.