Class: Cassandra::Execution::Info
- Inherits:
-
Object
- Object
- Cassandra::Execution::Info
- Defined in:
- lib/cassandra/execution/info.rb
Instance Attribute Summary collapse
-
#consistency ⇒ Symbol
readonly
Actual consistency used, it can differ from consistency in #options if a retry policy modified it.
-
#hosts ⇒ Array<Cassandra::Host>
readonly
A list of attempted hosts.
-
#keyspace ⇒ String
readonly
Keyspace used for the query.
-
#options ⇒ Cassandra::Execution::Options
readonly
Original execution options.
-
#payload ⇒ Hash<String, String>
readonly
A map of string keys and byte buffer values, containing custom payloads sent by custom query handlers.
-
#retries ⇒ Integer
readonly
Number of retries.
-
#statement ⇒ Cassandra::Statement
readonly
Original statement.
-
#trace ⇒ Cassandra::Execution::Trace?
readonly
Returns Trace if
trace: true
was passed to Session#execute or Session#execute_async. -
#warnings ⇒ Array<String>
readonly
A list of string warnings from the server.
Instance Attribute Details
#consistency ⇒ Symbol (readonly)
Actual consistency used, it can differ from consistency in #options if a retry policy modified it.
38 39 40 |
# File 'lib/cassandra/execution/info.rb', line 38 def consistency @consistency end |
#hosts ⇒ Array<Cassandra::Host> (readonly)
Returns a list of attempted hosts.
34 35 36 |
# File 'lib/cassandra/execution/info.rb', line 34 def hosts @hosts end |
#keyspace ⇒ String (readonly)
Returns keyspace used for the query.
28 29 30 |
# File 'lib/cassandra/execution/info.rb', line 28 def keyspace @keyspace end |
#options ⇒ Cassandra::Execution::Options (readonly)
Returns original execution options.
32 33 34 |
# File 'lib/cassandra/execution/info.rb', line 32 def end |
#payload ⇒ Hash<String, String> (readonly)
Returns a map of string keys and byte buffer values, containing custom payloads sent by custom query handlers.
24 25 26 |
# File 'lib/cassandra/execution/info.rb', line 24 def payload @payload end |
#retries ⇒ Integer (readonly)
Returns number of retries.
40 41 42 |
# File 'lib/cassandra/execution/info.rb', line 40 def retries @retries end |
#statement ⇒ Cassandra::Statement (readonly)
Returns original statement.
30 31 32 |
# File 'lib/cassandra/execution/info.rb', line 30 def statement @statement end |
#trace ⇒ Cassandra::Execution::Trace? (readonly)
Returns Trace if trace: true
was passed to
Session#execute or Session#execute_async
45 46 47 |
# File 'lib/cassandra/execution/info.rb', line 45 def trace @trace end |
#warnings ⇒ Array<String> (readonly)
Returns a list of string warnings from the server.
26 27 28 |
# File 'lib/cassandra/execution/info.rb', line 26 def warnings @warnings end |