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 -
Field Summary
FieldsFields inherited from interface com.complexible.stardog.process.ProcessInfo
NO_TIME -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetDB()Deprecated.longReturns the time in milliseconds when the execution of this query ended orProcessInfo.NO_TIMEif the execution did not end.Returns the metadata associated with this query.longReturns the elapsed time in milliseconds of the pre-execution stage of this query.getQuery()Returns the SPARQL query string.Returns the type of query which is executingReturn the active reasoning schemaReturns a string rendering of the query plan.getRenderedPlan(boolean verbose) longReturn the timeout value in milliseconds for this query orProcessInfo.NO_TIMEif there is no timeout defined for this query.default com.complexible.stardog.process.ProcessTypegetType()default booleanisEnded()Returnstrueif the execution of this query ended.booleanReturns whether reasoning is enabled for this query.default booleanReturnstrueif the execution of this query started and did not end.default booleanReturnstrueif the execution of this query started.Methods inherited from interface com.complexible.stardog.process.ProcessInfo
details, getDBName, getExecutionTime, getID, getKernelID, getProcessStatus, getStartTime, getUser, isCanceled, isManaged, progress
-
Field Details
-
DEFAULT_QUERY_TYPE
- See Also:
-
-
Method Details
-
getStatus
QueryInfo.Status getStatus() -
getQuery
String getQuery()Returns the SPARQL query string. -
isReasoningEnabled
boolean isReasoningEnabled()Returns whether reasoning is enabled for this query. -
getReasoningSchema
String getReasoningSchema()Return the active reasoning schema -
getPreExecutionTime
long getPreExecutionTime()Returns the elapsed time in milliseconds of the pre-execution stage of this query. -
getEndTime
long getEndTime()Returns the time in milliseconds when the execution of this query ended orProcessInfo.NO_TIMEif 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_TIMEif 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_TIMEOUTandDatabaseOptions.QUERY_UPDATE_TIMEOUToptions. -
isStarted
default boolean isStarted()Returnstrueif the execution of this query started. -
getDB
Deprecated. -
getType
default com.complexible.stardog.process.ProcessType getType()- Specified by:
getTypein interfacecom.complexible.stardog.process.ProcessInfo
-
isEnded
default boolean isEnded()Returnstrueif the execution of this query ended.- Specified by:
isEndedin interfacecom.complexible.stardog.process.ProcessInfo
-
isRunning
default boolean isRunning()Returnstrueif the execution of this query started and did not end.- Specified by:
isRunningin interfacecom.complexible.stardog.process.ProcessInfo
-
getQueryType
String getQueryType()Returns the type of query which is executing -
getRenderedPlan
Returns a string rendering of the query plan. -
getRenderedPlan
-
getMetadata
Returns the metadata associated with this query. Metadata is a set of key-value pairs that can be used to pass additional information about the query context. UsesQueryMetadataKeyfor type-safe.- Returns:
- an unmodifiable map of metadata key-value pairs, never null
-