Class: Rafflesia::QueryMeasurements
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::QueryMeasurements
- Defined in:
- lib/rafflesia/query/query_measurements.rb
Constant Summary collapse
- HASH_ATTRS =
{ actual_bytes_scanned: :actual_bytes_scanned, actual_rows_scanned: :actual_rows_scanned, applied_budget: :applied_budget, budget_profile: :budget_profile, bytes_scanned: :bytes_scanned, bytes_scanned_per_returned: :bytes_scanned_per_returned, cpu_time_ms: :cpu_time_ms, elapsed_ms: :elapsed_ms, engine_bytes_read: :engine_bytes_read, engine_rows_scanned: :engine_rows_scanned, estimated_bytes_scanned: :estimated_bytes_scanned, estimated_rows_scanned: :estimated_rows_scanned, execution_ms: :execution_ms, metadata_cache_hit_count: :metadata_cache_hit_count, object_read_backend: :object_read_backend, object_read_bytes: :object_read_bytes, object_read_count: :object_read_count, object_read_measurement_kind: :object_read_measurement_kind, peak_buffer_memory_bytes: :peak_buffer_memory_bytes, peak_temp_directory_bytes: :peak_temp_directory_bytes, planning_ms: :planning_ms, queue_wait_ms: :queue_wait_ms, rows_returned: :rows_returned, rows_scanned: :rows_scanned, rows_scanned_per_returned: :rows_scanned_per_returned, scan_measurement_kind: :scan_measurement_kind, source_count: :source_count }.freeze
Instance Attribute Summary collapse
-
#actual_bytes_scanned ⇒ Object
Returns the value of attribute actual_bytes_scanned.
-
#actual_rows_scanned ⇒ Object
Returns the value of attribute actual_rows_scanned.
-
#applied_budget ⇒ Object
Returns the value of attribute applied_budget.
-
#budget_profile ⇒ Object
Returns the value of attribute budget_profile.
-
#bytes_scanned ⇒ Object
Returns the value of attribute bytes_scanned.
-
#bytes_scanned_per_returned ⇒ Object
Returns the value of attribute bytes_scanned_per_returned.
-
#cpu_time_ms ⇒ Object
Returns the value of attribute cpu_time_ms.
-
#elapsed_ms ⇒ Object
Returns the value of attribute elapsed_ms.
-
#engine_bytes_read ⇒ Object
Returns the value of attribute engine_bytes_read.
-
#engine_rows_scanned ⇒ Object
Returns the value of attribute engine_rows_scanned.
-
#estimated_bytes_scanned ⇒ Object
Returns the value of attribute estimated_bytes_scanned.
-
#estimated_rows_scanned ⇒ Object
Returns the value of attribute estimated_rows_scanned.
-
#execution_ms ⇒ Object
Returns the value of attribute execution_ms.
-
#metadata_cache_hit_count ⇒ Object
Returns the value of attribute metadata_cache_hit_count.
-
#object_read_backend ⇒ Object
Returns the value of attribute object_read_backend.
-
#object_read_bytes ⇒ Object
Returns the value of attribute object_read_bytes.
-
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
-
#object_read_measurement_kind ⇒ Object
Returns the value of attribute object_read_measurement_kind.
-
#peak_buffer_memory_bytes ⇒ Object
Returns the value of attribute peak_buffer_memory_bytes.
-
#peak_temp_directory_bytes ⇒ Object
Returns the value of attribute peak_temp_directory_bytes.
-
#planning_ms ⇒ Object
Returns the value of attribute planning_ms.
-
#queue_wait_ms ⇒ Object
Returns the value of attribute queue_wait_ms.
-
#rows_returned ⇒ Object
Returns the value of attribute rows_returned.
-
#rows_scanned ⇒ Object
Returns the value of attribute rows_scanned.
-
#rows_scanned_per_returned ⇒ Object
Returns the value of attribute rows_scanned_per_returned.
-
#scan_measurement_kind ⇒ Object
Returns the value of attribute scan_measurement_kind.
-
#source_count ⇒ Object
Returns the value of attribute source_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ QueryMeasurements
constructor
A new instance of QueryMeasurements.
Constructor Details
#initialize(json) ⇒ QueryMeasurements
Returns a new instance of QueryMeasurements.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/rafflesia/query/query_measurements.rb', line 67 def initialize(json) super() hash = self.class.normalize(json) @actual_bytes_scanned = hash[:actual_bytes_scanned] @actual_rows_scanned = hash[:actual_rows_scanned] @applied_budget = hash[:applied_budget] ? Rafflesia::QueryBudget.new(hash[:applied_budget]) : nil @budget_profile = hash[:budget_profile] @bytes_scanned = hash[:bytes_scanned] @bytes_scanned_per_returned = hash[:bytes_scanned_per_returned] @cpu_time_ms = hash[:cpu_time_ms] @elapsed_ms = hash[:elapsed_ms] @engine_bytes_read = hash[:engine_bytes_read] @engine_rows_scanned = hash[:engine_rows_scanned] @estimated_bytes_scanned = hash[:estimated_bytes_scanned] @estimated_rows_scanned = hash[:estimated_rows_scanned] @execution_ms = hash[:execution_ms] @metadata_cache_hit_count = hash[:metadata_cache_hit_count] @object_read_backend = hash[:object_read_backend] @object_read_bytes = hash[:object_read_bytes] @object_read_count = hash[:object_read_count] @object_read_measurement_kind = hash[:object_read_measurement_kind] @peak_buffer_memory_bytes = hash[:peak_buffer_memory_bytes] @peak_temp_directory_bytes = hash[:peak_temp_directory_bytes] @planning_ms = hash[:planning_ms] @queue_wait_ms = hash[:queue_wait_ms] @rows_returned = hash[:rows_returned] @rows_scanned = hash[:rows_scanned] @rows_scanned_per_returned = hash[:rows_scanned_per_returned] @scan_measurement_kind = hash[:scan_measurement_kind] @source_count = hash[:source_count] end |
Instance Attribute Details
#actual_bytes_scanned ⇒ Object
Returns the value of attribute actual_bytes_scanned.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def actual_bytes_scanned @actual_bytes_scanned end |
#actual_rows_scanned ⇒ Object
Returns the value of attribute actual_rows_scanned.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def actual_rows_scanned @actual_rows_scanned end |
#applied_budget ⇒ Object
Returns the value of attribute applied_budget.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def applied_budget @applied_budget end |
#budget_profile ⇒ Object
Returns the value of attribute budget_profile.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def budget_profile @budget_profile end |
#bytes_scanned ⇒ Object
Returns the value of attribute bytes_scanned.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def bytes_scanned @bytes_scanned end |
#bytes_scanned_per_returned ⇒ Object
Returns the value of attribute bytes_scanned_per_returned.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def bytes_scanned_per_returned @bytes_scanned_per_returned end |
#cpu_time_ms ⇒ Object
Returns the value of attribute cpu_time_ms.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def cpu_time_ms @cpu_time_ms end |
#elapsed_ms ⇒ Object
Returns the value of attribute elapsed_ms.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def elapsed_ms @elapsed_ms end |
#engine_bytes_read ⇒ Object
Returns the value of attribute engine_bytes_read.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def engine_bytes_read @engine_bytes_read end |
#engine_rows_scanned ⇒ Object
Returns the value of attribute engine_rows_scanned.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def engine_rows_scanned @engine_rows_scanned end |
#estimated_bytes_scanned ⇒ Object
Returns the value of attribute estimated_bytes_scanned.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def estimated_bytes_scanned @estimated_bytes_scanned end |
#estimated_rows_scanned ⇒ Object
Returns the value of attribute estimated_rows_scanned.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def estimated_rows_scanned @estimated_rows_scanned end |
#execution_ms ⇒ Object
Returns the value of attribute execution_ms.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def execution_ms @execution_ms end |
#metadata_cache_hit_count ⇒ Object
Returns the value of attribute metadata_cache_hit_count.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def @metadata_cache_hit_count end |
#object_read_backend ⇒ Object
Returns the value of attribute object_read_backend.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def object_read_backend @object_read_backend end |
#object_read_bytes ⇒ Object
Returns the value of attribute object_read_bytes.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def object_read_bytes @object_read_bytes end |
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def object_read_count @object_read_count end |
#object_read_measurement_kind ⇒ Object
Returns the value of attribute object_read_measurement_kind.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def object_read_measurement_kind @object_read_measurement_kind end |
#peak_buffer_memory_bytes ⇒ Object
Returns the value of attribute peak_buffer_memory_bytes.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def peak_buffer_memory_bytes @peak_buffer_memory_bytes end |
#peak_temp_directory_bytes ⇒ Object
Returns the value of attribute peak_temp_directory_bytes.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def peak_temp_directory_bytes @peak_temp_directory_bytes end |
#planning_ms ⇒ Object
Returns the value of attribute planning_ms.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def planning_ms @planning_ms end |
#queue_wait_ms ⇒ Object
Returns the value of attribute queue_wait_ms.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def queue_wait_ms @queue_wait_ms end |
#rows_returned ⇒ Object
Returns the value of attribute rows_returned.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def rows_returned @rows_returned end |
#rows_scanned ⇒ Object
Returns the value of attribute rows_scanned.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def rows_scanned @rows_scanned end |
#rows_scanned_per_returned ⇒ Object
Returns the value of attribute rows_scanned_per_returned.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def rows_scanned_per_returned @rows_scanned_per_returned end |
#scan_measurement_kind ⇒ Object
Returns the value of attribute scan_measurement_kind.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def scan_measurement_kind @scan_measurement_kind end |
#source_count ⇒ Object
Returns the value of attribute source_count.
38 39 40 |
# File 'lib/rafflesia/query/query_measurements.rb', line 38 def source_count @source_count end |