Package com.complexible.stardog
Interface QueryInfo
-
- All Superinterfaces:
com.complexible.stardog.process.ProcessInfo
public interface QueryInfo extends com.complexible.stardog.process.ProcessInfoA simple structure that shows information about a query.- Author:
- Evren Sirin
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classQueryInfo.Status
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_QUERY_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.lang.StringgetDB()Deprecated.longgetEndTime()Returns the time in milliseconds when the execution of this query ended orProcessInfo.NO_TIMEif the execution did not end.java.lang.StringgetQuery()Returns the SPARQL query string.java.lang.StringgetQueryType()Returns the type of query which is executingjava.lang.StringgetReasoningSchema()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.StatusgetStatus()longgetTimeout()Return 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.booleanisReasoningEnabled()Returns whether reasoning is enabled for this query.default booleanisRunning()Returnstrueif the execution of this query started and did not end.default booleanisStarted()Returnstrueif 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_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 default java.lang.String 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
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)
-
-