Class ExecutionInfo
Basic information on the execution of a query.
This provides the following information on the execution of a (successful) query:
- The list of Cassandra hosts tried in order (usually just one, unless a node has been tried but was dead/in error or a timeout provoked a retry (which depends on the RetryPolicy)).
- The consistency level achieved by the query (usually the one asked, though some specific RetryPolicy may allow this to be different).
- The query trace recorded by Cassandra if tracing had been set for the query.
Inherited Members
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public class ExecutionInfo
Constructors
ExecutionInfo()
Declaration
public ExecutionInfo()
Properties
AchievedConsistency
Gets the final achieved consistency
Declaration
public ConsistencyLevel AchievedConsistency { get; }
Property Value
Type | Description |
---|---|
ConsistencyLevel |
IncomingPayload
Returns the incoming custom payload set by the server with its response, or null if the server have not include any custom payload.
This feature is only available for Cassandra 2.2 or above; with lower versions, this property always returns null.
Declaration
public IDictionary<string, byte[]> IncomingPayload { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, byte[]> |
IsSchemaInAgreement
After a successful schema-altering query (ex: creating a table), the driver will check if the cluster's nodes agree on the new schema version. If not, it will keep retrying for a given delay (configurable via WithMaxSchemaAgreementWaitSeconds(int)).
If this method returnsfalse
, clients can call CheckSchemaAgreementAsync()
later to perform the check manually.
Declaration
public bool IsSchemaInAgreement { get; }
Property Value
Type | Description |
---|---|
bool | Whether the cluster reached schema agreement, or for a non schema-altering statement.
|
Remarks
Note that the schema agreement check is only performed for schema-altering queries For other query types, this method will always return
true
.
QueriedHost
Retrieves the coordinator that responded to the request
Declaration
public IPEndPoint QueriedHost { get; }
Property Value
Type | Description |
---|---|
IPEndPoint |
QueryTrace
Gets the trace for the query execution.
Declaration
public QueryTrace QueryTrace { get; }
Property Value
Type | Description |
---|---|
QueryTrace |
TriedHosts
Gets the list of host that were queried before getting a valid response, being the last host the one that replied correctly.
Declaration
public IList<IPEndPoint> TriedHosts { get; }
Property Value
Type | Description |
---|---|
IList<IPEndPoint> |
Warnings
Returns the server-side warnings for this query.
This feature is only available for Cassandra 2.2 or above; with lower versions, this property always returns null.
Declaration
public string[] Warnings { get; }
Property Value
Type | Description |
---|---|
string[] |
Methods
GetQueryTraceAsync()
Gets the trace information for the query execution without blocking.
Declaration
public Task<QueryTrace> GetQueryTraceAsync()
Returns
Type | Description |
---|---|
Task<QueryTrace> |