class Cassandra::Execution::Info
Attributes
consistency[R]
Actual consistency used, it can differ from consistency in
{Cassandra::Execution::Info#options} if a retry policy modified it.
@return [Symbol] one of {Cassandra::CONSISTENCIES}
hosts[R]
@return [Array<Cassandra::Host>] a list of attempted hosts
keyspace[R]
@return [String] keyspace used for the query
options[R]
@return [Cassandra::Execution::Options] original execution options
payload[R]
@return [Hash<String, String>] a map of string keys and byte buffer
values, containing custom payloads sent by custom query handlers
retries[R]
@return [Integer] number of retries
statement[R]
@return [Cassandra::Statement] original statement
trace[R]
Returns {Cassandra::Execution::Trace} if `trace: true` was passed to
{Cassandra::Session#execute} or {Cassandra::Session#execute_async}
@return [Cassandra::Execution::Trace, nil] a Trace
if it has been enabled for
request
warnings[R]
@return [Array<String>] a list of string warnings from the server
Public Class Methods
new(payload, warnings, keyspace, statement, options, hosts, consistency, retries, trace)
click to toggle source
@private
# File lib/cassandra/execution/info.rb 48 def initialize(payload, 49 warnings, 50 keyspace, 51 statement, 52 options, 53 hosts, 54 consistency, 55 retries, 56 trace) 57 @payload = payload 58 @warnings = warnings 59 @keyspace = keyspace 60 @statement = statement 61 @options = options 62 @hosts = hosts 63 @consistency = consistency 64 @retries = retries 65 @trace = trace 66 end