Class: Rafflesia::FoldCollectionSegmentSearchData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldCollectionSegmentSearchData
- Defined in:
- lib/rafflesia/proteins/fold_collection_segment_search_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ block_cache_hits: :block_cache_hits, block_cache_misses: :block_cache_misses, exact_hit_count: :exact_hit_count, exact_materialized_bytes: :exact_materialized_bytes, exact_object_bytes_fetched: :exact_object_bytes_fetched, exact_object_read_count: :exact_object_read_count, exact_verified: :exact_verified, hit_count: :hit_count, manifest_object_id: :manifest_object_id, materialized_bytes: :materialized_bytes, object_bytes_fetched: :object_bytes_fetched, object_read_count: :object_read_count, plan: :plan, planned_object_bytes: :planned_object_bytes, planned_object_read_count: :planned_object_read_count, range_bytes_fetched: :range_bytes_fetched, range_read_count: :range_read_count, records_read: :records_read, ref: :ref, routing_rank: :routing_rank, routing_score: :routing_score, segment_id: :segment_id, selected_block_bytes: :selected_block_bytes, selected_block_count: :selected_block_count, selected_block_ids: :selected_block_ids, worker_elapsed_ms: :worker_elapsed_ms, worker_error: :worker_error, worker_finished_at: :worker_finished_at, worker_id: :worker_id, worker_job_id: :worker_job_id, worker_job_status: :worker_job_status, worker_result_object: :worker_result_object, worker_result_object_id: :worker_result_object_id, worker_started_at: :worker_started_at, worker_status: :worker_status }.freeze
Instance Attribute Summary collapse
-
#block_cache_hits ⇒ Object
Returns the value of attribute block_cache_hits.
-
#block_cache_misses ⇒ Object
Returns the value of attribute block_cache_misses.
-
#exact_hit_count ⇒ Object
Returns the value of attribute exact_hit_count.
-
#exact_materialized_bytes ⇒ Object
Returns the value of attribute exact_materialized_bytes.
-
#exact_object_bytes_fetched ⇒ Object
Returns the value of attribute exact_object_bytes_fetched.
-
#exact_object_read_count ⇒ Object
Returns the value of attribute exact_object_read_count.
-
#exact_verified ⇒ Object
Returns the value of attribute exact_verified.
-
#hit_count ⇒ Object
Returns the value of attribute hit_count.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#materialized_bytes ⇒ Object
Returns the value of attribute materialized_bytes.
-
#object_bytes_fetched ⇒ Object
Returns the value of attribute object_bytes_fetched.
-
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
-
#plan ⇒ Object
Returns the value of attribute plan.
-
#planned_object_bytes ⇒ Object
Returns the value of attribute planned_object_bytes.
-
#planned_object_read_count ⇒ Object
Returns the value of attribute planned_object_read_count.
-
#range_bytes_fetched ⇒ Object
Returns the value of attribute range_bytes_fetched.
-
#range_read_count ⇒ Object
Returns the value of attribute range_read_count.
-
#records_read ⇒ Object
Returns the value of attribute records_read.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#routing_rank ⇒ Object
Returns the value of attribute routing_rank.
-
#routing_score ⇒ Object
Returns the value of attribute routing_score.
-
#segment_id ⇒ Object
Returns the value of attribute segment_id.
-
#selected_block_bytes ⇒ Object
Returns the value of attribute selected_block_bytes.
-
#selected_block_count ⇒ Object
Returns the value of attribute selected_block_count.
-
#selected_block_ids ⇒ Object
Returns the value of attribute selected_block_ids.
-
#worker_elapsed_ms ⇒ Object
Returns the value of attribute worker_elapsed_ms.
-
#worker_error ⇒ Object
Returns the value of attribute worker_error.
-
#worker_finished_at ⇒ Object
Returns the value of attribute worker_finished_at.
-
#worker_id ⇒ Object
Returns the value of attribute worker_id.
-
#worker_job_id ⇒ Object
Returns the value of attribute worker_job_id.
-
#worker_job_status ⇒ Object
Returns the value of attribute worker_job_status.
-
#worker_result_object ⇒ Object
Returns the value of attribute worker_result_object.
-
#worker_result_object_id ⇒ Object
Returns the value of attribute worker_result_object_id.
-
#worker_started_at ⇒ Object
Returns the value of attribute worker_started_at.
-
#worker_status ⇒ Object
Returns the value of attribute worker_status.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldCollectionSegmentSearchData
constructor
A new instance of FoldCollectionSegmentSearchData.
Constructor Details
#initialize(json) ⇒ FoldCollectionSegmentSearchData
Returns a new instance of FoldCollectionSegmentSearchData.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 83 def initialize(json) super() hash = self.class.normalize(json) @block_cache_hits = hash[:block_cache_hits] @block_cache_misses = hash[:block_cache_misses] @exact_hit_count = hash[:exact_hit_count] @exact_materialized_bytes = hash[:exact_materialized_bytes] @exact_object_bytes_fetched = hash[:exact_object_bytes_fetched] @exact_object_read_count = hash[:exact_object_read_count] @exact_verified = hash[:exact_verified] @hit_count = hash[:hit_count] @manifest_object_id = hash[:manifest_object_id] @materialized_bytes = hash[:materialized_bytes] @object_bytes_fetched = hash[:object_bytes_fetched] @object_read_count = hash[:object_read_count] @plan = hash[:plan] ? Rafflesia::SearchSegmentPlanData.new(hash[:plan]) : nil @planned_object_bytes = hash[:planned_object_bytes] @planned_object_read_count = hash[:planned_object_read_count] @range_bytes_fetched = hash[:range_bytes_fetched] @range_read_count = hash[:range_read_count] @records_read = hash[:records_read] @ref = hash[:ref] @routing_rank = hash[:routing_rank] @routing_score = hash[:routing_score] @segment_id = hash[:segment_id] @selected_block_bytes = hash[:selected_block_bytes] @selected_block_count = hash[:selected_block_count] @selected_block_ids = (hash[:selected_block_ids] || []) @worker_elapsed_ms = hash[:worker_elapsed_ms] @worker_error = hash[:worker_error] @worker_finished_at = hash[:worker_finished_at] @worker_id = hash[:worker_id] @worker_job_id = hash[:worker_job_id] @worker_job_status = hash[:worker_job_status] @worker_result_object = hash[:worker_result_object] ? Rafflesia::ObjectRef.new(hash[:worker_result_object]) : nil @worker_result_object_id = hash[:worker_result_object_id] @worker_started_at = hash[:worker_started_at] @worker_status = hash[:worker_status] end |
Instance Attribute Details
#block_cache_hits ⇒ Object
Returns the value of attribute block_cache_hits.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def block_cache_hits @block_cache_hits end |
#block_cache_misses ⇒ Object
Returns the value of attribute block_cache_misses.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def block_cache_misses @block_cache_misses end |
#exact_hit_count ⇒ Object
Returns the value of attribute exact_hit_count.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def exact_hit_count @exact_hit_count end |
#exact_materialized_bytes ⇒ Object
Returns the value of attribute exact_materialized_bytes.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def exact_materialized_bytes @exact_materialized_bytes end |
#exact_object_bytes_fetched ⇒ Object
Returns the value of attribute exact_object_bytes_fetched.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def exact_object_bytes_fetched @exact_object_bytes_fetched end |
#exact_object_read_count ⇒ Object
Returns the value of attribute exact_object_read_count.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def exact_object_read_count @exact_object_read_count end |
#exact_verified ⇒ Object
Returns the value of attribute exact_verified.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def exact_verified @exact_verified end |
#hit_count ⇒ Object
Returns the value of attribute hit_count.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def hit_count @hit_count end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def manifest_object_id @manifest_object_id end |
#materialized_bytes ⇒ Object
Returns the value of attribute materialized_bytes.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def materialized_bytes @materialized_bytes end |
#object_bytes_fetched ⇒ Object
Returns the value of attribute object_bytes_fetched.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def object_bytes_fetched @object_bytes_fetched end |
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def object_read_count @object_read_count end |
#plan ⇒ Object
Returns the value of attribute plan.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def plan @plan end |
#planned_object_bytes ⇒ Object
Returns the value of attribute planned_object_bytes.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def planned_object_bytes @planned_object_bytes end |
#planned_object_read_count ⇒ Object
Returns the value of attribute planned_object_read_count.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def planned_object_read_count @planned_object_read_count end |
#range_bytes_fetched ⇒ Object
Returns the value of attribute range_bytes_fetched.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def range_bytes_fetched @range_bytes_fetched end |
#range_read_count ⇒ Object
Returns the value of attribute range_read_count.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def range_read_count @range_read_count end |
#records_read ⇒ Object
Returns the value of attribute records_read.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def records_read @records_read end |
#ref ⇒ Object
Returns the value of attribute ref.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def ref @ref end |
#routing_rank ⇒ Object
Returns the value of attribute routing_rank.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def routing_rank @routing_rank end |
#routing_score ⇒ Object
Returns the value of attribute routing_score.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def routing_score @routing_score end |
#segment_id ⇒ Object
Returns the value of attribute segment_id.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def segment_id @segment_id end |
#selected_block_bytes ⇒ Object
Returns the value of attribute selected_block_bytes.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def selected_block_bytes @selected_block_bytes end |
#selected_block_count ⇒ Object
Returns the value of attribute selected_block_count.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def selected_block_count @selected_block_count end |
#selected_block_ids ⇒ Object
Returns the value of attribute selected_block_ids.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def selected_block_ids @selected_block_ids end |
#worker_elapsed_ms ⇒ Object
Returns the value of attribute worker_elapsed_ms.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def worker_elapsed_ms @worker_elapsed_ms end |
#worker_error ⇒ Object
Returns the value of attribute worker_error.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def worker_error @worker_error end |
#worker_finished_at ⇒ Object
Returns the value of attribute worker_finished_at.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def worker_finished_at @worker_finished_at end |
#worker_id ⇒ Object
Returns the value of attribute worker_id.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def worker_id @worker_id end |
#worker_job_id ⇒ Object
Returns the value of attribute worker_job_id.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def worker_job_id @worker_job_id end |
#worker_job_status ⇒ Object
Returns the value of attribute worker_job_status.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def worker_job_status @worker_job_status end |
#worker_result_object ⇒ Object
Returns the value of attribute worker_result_object.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def worker_result_object @worker_result_object end |
#worker_result_object_id ⇒ Object
Returns the value of attribute worker_result_object_id.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def worker_result_object_id @worker_result_object_id end |
#worker_started_at ⇒ Object
Returns the value of attribute worker_started_at.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def worker_started_at @worker_started_at end |
#worker_status ⇒ Object
Returns the value of attribute worker_status.
46 47 48 |
# File 'lib/rafflesia/proteins/fold_collection_segment_search_data.rb', line 46 def worker_status @worker_status end |