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.
-
#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.
Instance Attribute Details
#consistency ⇒ Symbol (readonly)
Actual consistency used, it can differ from consistency in #options if a retry policy modified it.
32 33 34 |
# File 'lib/cassandra/execution/info.rb', line 32 def consistency @consistency end |
#hosts ⇒ Array<Cassandra::Host> (readonly)
Returns a list of attempted hosts.
29 30 31 |
# File 'lib/cassandra/execution/info.rb', line 29 def hosts @hosts end |
#keyspace ⇒ String (readonly)
Returns keyspace used for the query.
23 24 25 |
# File 'lib/cassandra/execution/info.rb', line 23 def keyspace @keyspace end |
#options ⇒ Cassandra::Execution::Options (readonly)
Returns original execution options.
27 28 29 |
# File 'lib/cassandra/execution/info.rb', line 27 def @options end |
#retries ⇒ Integer (readonly)
Returns number of retries.
34 35 36 |
# File 'lib/cassandra/execution/info.rb', line 34 def retries @retries end |
#statement ⇒ Cassandra::Statement (readonly)
Returns original statement.
25 26 27 |
# File 'lib/cassandra/execution/info.rb', line 25 def statement @statement end |
#trace ⇒ Cassandra::Execution::Trace? (readonly)
Returns Trace if trace: true
was passed to Session#execute or Session#execute_async
37 38 39 |
# File 'lib/cassandra/execution/info.rb', line 37 def trace @trace end |