Interface ResultSummary
- All Known Implementing Classes:
InternalResultSummary
The result summary of running a query. The result summary interface can be used to investigate
details about the result, like the type of query run, how many and which kinds of updates have been executed,
and query plan and profiling information if available.
The result summary is only available after all result records have been consumed.
Keeping the result summary around does not influence the lifecycle of any associated session and/or transaction.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptioncounters()Returns the counters for operations the query triggered.database()The basic information of the database where the result is obtained fromReturns a sequenced set of GQL-status objects resulting from the request execution.booleanhasPlan()Deprecated.booleanDeprecated.usequeryProfile().isPresent()instead.Deprecated.superseded bygqlStatusObjects().plan()Deprecated.superseded byqueryPlan().profile()Deprecated.superseded byqueryProfile()query()Returns the query that has been executed.This describes how the database will execute your query.default Optional<QueryProfile> This describes how the database did execute your query.Returns the type of query that has been executed.longresultAvailableAfter(TimeUnit unit) The time it took the server to make the result available for consumption.longresultConsumedAfter(TimeUnit unit) The time it took the server to consume the result.server()The basic information of the server where the result is obtained from
-
Method Details
-
query
-
counters
SummaryCounters counters()Returns the counters for operations the query triggered.- Returns:
- the counters for operations the query triggered
-
queryType
QueryType queryType()Returns the type of query that has been executed.- Returns:
- the type of query that has been executed
-
hasPlan
Deprecated.usequeryPlan().isPresent()instead.Returnstrueif the result contained a query plan, i.e. is the summary of a Cypher "PROFILE" or "EXPLAIN" query.- Returns:
trueif the result contained a query plan, i.e. is the summary of a Cypher "PROFILE" or "EXPLAIN" query
-
hasProfile
Deprecated.usequeryProfile().isPresent()instead.Returnstrueif the result contained profiling information, i.e. is the summary of a Cypher "PROFILE" query.- Returns:
trueif the result contained profiling information, i.e. is the summary of a Cypher "PROFILE" query
-
plan
Deprecated.superseded byqueryPlan().This describes how the database will execute your query.- Returns:
- query plan for the executed query if available, otherwise null
-
profile
Deprecated.superseded byqueryProfile()This describes how the database did execute your query.If the query you executed
was profiled, the query plan will contain detailed information about what each step of the plan did. That more in-depth version of the query plan becomes available here.- Returns:
- profiled query plan for the executed query if available, otherwise null
-
queryPlan
-
queryProfile
This describes how the database did execute your query.If the query you executed was profiled, the query plan will contain detailed information about what each step of the plan did. That more in-depth version of the query plan becomes available here.
- Returns:
- profiled query plan for the executed query if available
- Since:
- 6.2.0
-
notifications
Deprecated.superseded bygqlStatusObjects().A list of notifications that might arise when executing the query. Notifications can be warnings about problematic queries or other valuable information that can be presented in a client.Unlike failures or errors, notifications do not affect the execution of a query.
- Returns:
- a list of notifications produced while executing the query. The list will be empty if no notifications produced while executing the query.
-
gqlStatusObjects
Set<GqlStatusObject> gqlStatusObjects()Returns a sequenced set of GQL-status objects resulting from the request execution.- Returns:
- the sequenced set of GQL-status objects
- Since:
- 5.22.0
-
resultAvailableAfter
The time it took the server to make the result available for consumption.- Parameters:
unit- The unit of the duration.- Returns:
- The time it took for the server to have the result available in the provided time unit.
-
resultConsumedAfter
The time it took the server to consume the result.- Parameters:
unit- The unit of the duration.- Returns:
- The time it took for the server to consume the result in the provided time unit.
-
server
ServerInfo server()The basic information of the server where the result is obtained from- Returns:
- basic information of the server where the result is obtained from
-
database
DatabaseInfo database()The basic information of the database where the result is obtained from- Returns:
- the basic information of the database where the result is obtained from
-
queryPlan().isPresent()instead.