public class ExecutionInfo extends Object
|Modifier and Type||Method and Description|
If the query returned without achieving the requested consistency level due to the
The paging state of the query.
Returns the "raw" paging state of the query.
Return the Cassandra host that coordinated this query.
The query trace if tracing was enabled on this query.
The list of tried hosts for this query.
Whether the cluster had reached schema agreement after the execution of this query.
In general, this will be a singleton list with the host that coordinated that query. However:
RetryPolicymay retry the query on the same host, so the same host might appear twice.
speculative executionsare enabled, other hosts might have been tried speculatively as well.
If you are only interested in fetching the final (and often only) node
coordinating the query,
getQueriedHost() provides a shortcut to
fetch the last element of the list returned by this method.
public Host getQueriedHost()
This is a shortcut for
public ConsistencyLevel getAchievedConsistencyLevel()
RetryPolicy, this return the biggest consistency level that has been actually achieved by the query.
Note that the default
will never allow a query to be successful without achieving the
initially requested consistency level and hence with that default
policy, this method will always return
null. However, it
might occasionally return a non-
null with say,
nullif the original consistency level of the query was achieved, or the consistency level that was ultimately achieved if the
RetryPolicytriggered a retry at a different consistency level than the original one.
public QueryTrace getQueryTrace()
QueryTraceobject for this query if tracing was enable for this query, or
public PagingState getPagingState()
public byte getPagingStateUnsafe()
getPagingState(), there will be no validation when this is later reinjected into a statement.
public boolean isSchemaInAgreement()
If this method returns
false, clients can call
later to perform the check manually.
Note that the schema agreement check is only performed for schema-altering queries
For other query types, this method will always return
truefor a non schema-altering statement.
Copyright © 2012–2015. All rights reserved.