Package com.complexible.stardog
Interface QueryInfo
-
- All Superinterfaces:
com.complexible.stardog.process.ProcessInfo
public interface QueryInfo extends com.complexible.stardog.process.ProcessInfo
A simple structure that shows information about a query.- Author:
- Evren Sirin
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
QueryInfo.Status
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_QUERY_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.lang.String
getDB()
Deprecated.long
getEndTime()
Returns the time in milliseconds when the execution of this query ended orProcessInfo.NO_TIME
if the execution did not end.java.lang.String
getQuery()
Returns the SPARQL query string.java.lang.String
getQueryType()
Returns the type of query which is executingjava.lang.String
getReasoningSchema()
Return the active reasoning schemajava.util.Optional<java.lang.String>
getRenderedPlan()
Returns a string rendering of the query plan.default java.util.Optional<java.lang.String>
getRenderedPlan(boolean verbose)
QueryInfo.Status
getStatus()
long
getTimeout()
Return the timeout value in milliseconds for this query orProcessInfo.NO_TIME
if there is no timeout defined for this query.default com.complexible.stardog.process.ProcessType
getType()
default boolean
isEnded()
Returnstrue
if the execution of this query ended.boolean
isReasoningEnabled()
Returns whether reasoning is enabled for this query.default boolean
isRunning()
Returnstrue
if the execution of this query started and did not end.default boolean
isStarted()
Returnstrue
if the execution of this query started.
-
-
-
Field Detail
-
DEFAULT_QUERY_TYPE
static final java.lang.String DEFAULT_QUERY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStatus
QueryInfo.Status getStatus()
-
getQuery
java.lang.String getQuery()
Returns the SPARQL query string.
-
isReasoningEnabled
boolean isReasoningEnabled()
Returns whether reasoning is enabled for this query.
-
getReasoningSchema
java.lang.String getReasoningSchema()
Return the active reasoning schema
-
getEndTime
long getEndTime()
Returns the time in milliseconds when the execution of this query ended orProcessInfo.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.
-
getTimeout
long getTimeout()
Return the timeout value in milliseconds for this query orProcessInfo.NO_TIME
if there is no 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 and query.update.timeout configuration options and can be overridden for a database using theDatabaseOptions.QUERY_TIMEOUT
andDatabaseOptions.QUERY_UPDATE_TIMEOUT
options.
-
isStarted
default boolean isStarted()
Returnstrue
if the execution of this query started.
-
getDB
@Deprecated default java.lang.String getDB()
Deprecated.
-
getType
default com.complexible.stardog.process.ProcessType getType()
- Specified by:
getType
in interfacecom.complexible.stardog.process.ProcessInfo
-
isEnded
default boolean isEnded()
Returnstrue
if the execution of this query ended.- Specified by:
isEnded
in interfacecom.complexible.stardog.process.ProcessInfo
-
isRunning
default boolean isRunning()
Returnstrue
if the execution of this query started and did not end.- Specified by:
isRunning
in interfacecom.complexible.stardog.process.ProcessInfo
-
getQueryType
java.lang.String getQueryType()
Returns the type of query which is executing
-
getRenderedPlan
java.util.Optional<java.lang.String> getRenderedPlan()
Returns a string rendering of the query plan.
-
getRenderedPlan
default java.util.Optional<java.lang.String> getRenderedPlan(boolean verbose)
-
-