Class: Rafflesia::CorpuReleaseSequenceQueryTraceData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleaseSequenceQueryTraceData
- Defined in:
- lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ bytes_read: :bytes_read, calibration: :calibration, family_yields: :family_yields, kind: :kind, object_reads: :object_reads, planner_mode: :planner_mode, posting_objects_fetched: :posting_objects_fetched, primary_posting_bytes_read: :primary_posting_bytes_read, primary_posting_object_reads: :primary_posting_object_reads, query_class: :query_class, read_costs_by_role: :read_costs_by_role, rescue_candidate_observations: :rescue_candidate_observations, rescue_new_candidate_count: :rescue_new_candidate_count, rescue_planned_route_count: :rescue_planned_route_count, rescue_posting_bytes_read: :rescue_posting_bytes_read, rescue_posting_object_reads: :rescue_posting_object_reads, rescue_route_hit_count: :rescue_route_hit_count, rescue_route_lookup_source: :rescue_route_lookup_source, rescue_route_lookup_token_count: :rescue_route_lookup_token_count, rescue_stop_reason: :rescue_stop_reason, route_hit_count: :route_hit_count, route_lookup_selected_token_count: :route_lookup_selected_token_count, route_lookup_source: :route_lookup_source, route_lookup_token_count: :route_lookup_token_count, selected_routes: :selected_routes, selected_tokens_by_family: :selected_tokens_by_family, verification_count: :verification_count }.freeze
Instance Attribute Summary collapse
-
#bytes_read ⇒ Object
Returns the value of attribute bytes_read.
-
#calibration ⇒ Object
Returns the value of attribute calibration.
-
#family_yields ⇒ Object
Returns the value of attribute family_yields.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#object_reads ⇒ Object
Returns the value of attribute object_reads.
-
#planner_mode ⇒ Object
Returns the value of attribute planner_mode.
-
#posting_objects_fetched ⇒ Object
Returns the value of attribute posting_objects_fetched.
-
#primary_posting_bytes_read ⇒ Object
Returns the value of attribute primary_posting_bytes_read.
-
#primary_posting_object_reads ⇒ Object
Returns the value of attribute primary_posting_object_reads.
-
#query_class ⇒ Object
Returns the value of attribute query_class.
-
#read_costs_by_role ⇒ Object
Returns the value of attribute read_costs_by_role.
-
#rescue_candidate_observations ⇒ Object
Returns the value of attribute rescue_candidate_observations.
-
#rescue_new_candidate_count ⇒ Object
Returns the value of attribute rescue_new_candidate_count.
-
#rescue_planned_route_count ⇒ Object
Returns the value of attribute rescue_planned_route_count.
-
#rescue_posting_bytes_read ⇒ Object
Returns the value of attribute rescue_posting_bytes_read.
-
#rescue_posting_object_reads ⇒ Object
Returns the value of attribute rescue_posting_object_reads.
-
#rescue_route_hit_count ⇒ Object
Returns the value of attribute rescue_route_hit_count.
-
#rescue_route_lookup_source ⇒ Object
Returns the value of attribute rescue_route_lookup_source.
-
#rescue_route_lookup_token_count ⇒ Object
Returns the value of attribute rescue_route_lookup_token_count.
-
#rescue_stop_reason ⇒ Object
Returns the value of attribute rescue_stop_reason.
-
#route_hit_count ⇒ Object
Returns the value of attribute route_hit_count.
-
#route_lookup_selected_token_count ⇒ Object
Returns the value of attribute route_lookup_selected_token_count.
-
#route_lookup_source ⇒ Object
Returns the value of attribute route_lookup_source.
-
#route_lookup_token_count ⇒ Object
Returns the value of attribute route_lookup_token_count.
-
#selected_routes ⇒ Object
Returns the value of attribute selected_routes.
-
#selected_tokens_by_family ⇒ Object
Returns the value of attribute selected_tokens_by_family.
-
#verification_count ⇒ Object
Returns the value of attribute verification_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleaseSequenceQueryTraceData
constructor
A new instance of CorpuReleaseSequenceQueryTraceData.
Constructor Details
#initialize(json) ⇒ CorpuReleaseSequenceQueryTraceData
Returns a new instance of CorpuReleaseSequenceQueryTraceData.
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/datasets/corpu_release_sequence_query_trace_data.rb', line 67 def initialize(json) super() hash = self.class.normalize(json) @bytes_read = hash[:bytes_read] @calibration = hash[:calibration] ? Rafflesia::CorpuReleaseSequenceQueryCalibrationTrace.new(hash[:calibration]) : nil @family_yields = (hash[:family_yields] || []).map { |item| item ? Rafflesia::CorpuReleaseSequenceQueryFamilyYield.new(item) : nil } @kind = hash[:kind] @object_reads = hash[:object_reads] @planner_mode = hash[:planner_mode] @posting_objects_fetched = (hash[:posting_objects_fetched] || []).map { |item| item ? Rafflesia::CorpuReleaseSequenceQueryObjectTrace.new(item) : nil } @primary_posting_bytes_read = hash[:primary_posting_bytes_read] @primary_posting_object_reads = hash[:primary_posting_object_reads] @query_class = hash[:query_class] @read_costs_by_role = (hash[:read_costs_by_role] || []).map { |item| item ? Rafflesia::CorpuReleaseSequenceQueryReadRoleTrace.new(item) : nil } @rescue_candidate_observations = hash[:rescue_candidate_observations] @rescue_new_candidate_count = hash[:rescue_new_candidate_count] @rescue_planned_route_count = hash[:rescue_planned_route_count] @rescue_posting_bytes_read = hash[:rescue_posting_bytes_read] @rescue_posting_object_reads = hash[:rescue_posting_object_reads] @rescue_route_hit_count = hash[:rescue_route_hit_count] @rescue_route_lookup_source = hash[:rescue_route_lookup_source] @rescue_route_lookup_token_count = hash[:rescue_route_lookup_token_count] @rescue_stop_reason = hash[:rescue_stop_reason] @route_hit_count = hash[:route_hit_count] @route_lookup_selected_token_count = hash[:route_lookup_selected_token_count] @route_lookup_source = hash[:route_lookup_source] @route_lookup_token_count = hash[:route_lookup_token_count] @selected_routes = (hash[:selected_routes] || []).map { |item| item ? Rafflesia::CorpuReleaseSequenceQueryRouteTrace.new(item) : nil } @selected_tokens_by_family = (hash[:selected_tokens_by_family] || []).map { |item| item ? Rafflesia::CorpuReleaseSequenceQueryFamilyTrace.new(item) : nil } @verification_count = hash[:verification_count] end |
Instance Attribute Details
#bytes_read ⇒ Object
Returns the value of attribute bytes_read.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def bytes_read @bytes_read end |
#calibration ⇒ Object
Returns the value of attribute calibration.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def calibration @calibration end |
#family_yields ⇒ Object
Returns the value of attribute family_yields.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def family_yields @family_yields end |
#kind ⇒ Object
Returns the value of attribute kind.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def kind @kind end |
#object_reads ⇒ Object
Returns the value of attribute object_reads.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def object_reads @object_reads end |
#planner_mode ⇒ Object
Returns the value of attribute planner_mode.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def planner_mode @planner_mode end |
#posting_objects_fetched ⇒ Object
Returns the value of attribute posting_objects_fetched.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def posting_objects_fetched @posting_objects_fetched end |
#primary_posting_bytes_read ⇒ Object
Returns the value of attribute primary_posting_bytes_read.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def primary_posting_bytes_read @primary_posting_bytes_read end |
#primary_posting_object_reads ⇒ Object
Returns the value of attribute primary_posting_object_reads.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def primary_posting_object_reads @primary_posting_object_reads end |
#query_class ⇒ Object
Returns the value of attribute query_class.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def query_class @query_class end |
#read_costs_by_role ⇒ Object
Returns the value of attribute read_costs_by_role.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def read_costs_by_role @read_costs_by_role end |
#rescue_candidate_observations ⇒ Object
Returns the value of attribute rescue_candidate_observations.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def rescue_candidate_observations @rescue_candidate_observations end |
#rescue_new_candidate_count ⇒ Object
Returns the value of attribute rescue_new_candidate_count.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def rescue_new_candidate_count @rescue_new_candidate_count end |
#rescue_planned_route_count ⇒ Object
Returns the value of attribute rescue_planned_route_count.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def rescue_planned_route_count @rescue_planned_route_count end |
#rescue_posting_bytes_read ⇒ Object
Returns the value of attribute rescue_posting_bytes_read.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def rescue_posting_bytes_read @rescue_posting_bytes_read end |
#rescue_posting_object_reads ⇒ Object
Returns the value of attribute rescue_posting_object_reads.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def rescue_posting_object_reads @rescue_posting_object_reads end |
#rescue_route_hit_count ⇒ Object
Returns the value of attribute rescue_route_hit_count.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def rescue_route_hit_count @rescue_route_hit_count end |
#rescue_route_lookup_source ⇒ Object
Returns the value of attribute rescue_route_lookup_source.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def rescue_route_lookup_source @rescue_route_lookup_source end |
#rescue_route_lookup_token_count ⇒ Object
Returns the value of attribute rescue_route_lookup_token_count.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def rescue_route_lookup_token_count @rescue_route_lookup_token_count end |
#rescue_stop_reason ⇒ Object
Returns the value of attribute rescue_stop_reason.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def rescue_stop_reason @rescue_stop_reason end |
#route_hit_count ⇒ Object
Returns the value of attribute route_hit_count.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def route_hit_count @route_hit_count end |
#route_lookup_selected_token_count ⇒ Object
Returns the value of attribute route_lookup_selected_token_count.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def route_lookup_selected_token_count @route_lookup_selected_token_count end |
#route_lookup_source ⇒ Object
Returns the value of attribute route_lookup_source.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def route_lookup_source @route_lookup_source end |
#route_lookup_token_count ⇒ Object
Returns the value of attribute route_lookup_token_count.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def route_lookup_token_count @route_lookup_token_count end |
#selected_routes ⇒ Object
Returns the value of attribute selected_routes.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def selected_routes @selected_routes end |
#selected_tokens_by_family ⇒ Object
Returns the value of attribute selected_tokens_by_family.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def selected_tokens_by_family @selected_tokens_by_family end |
#verification_count ⇒ Object
Returns the value of attribute verification_count.
38 39 40 |
# File 'lib/rafflesia/datasets/corpu_release_sequence_query_trace_data.rb', line 38 def verification_count @verification_count end |