Class: Rafflesia::FoldCollectionSearchData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldCollectionSearchData
- Defined in:
- lib/rafflesia/proteins/fold_collection_search_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, block_cache_hits: :block_cache_hits, block_cache_misses: :block_cache_misses, budget_reasons: :budget_reasons, calibration_id: :calibration_id, calibration_object_id: :calibration_object_id, calibration_profile: :calibration_profile, collection_id: :collection_id, dry_run: :dry_run, 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, execution_backend: :execution_backend, execution_plan: :execution_plan, execution_plan_object: :execution_plan_object, execution_plan_object_id: :execution_plan_object_id, hits: :hits, is_distributed: :is_distributed, is_within_budget: :is_within_budget, materialized_bytes: :materialized_bytes, max_workers: :max_workers, normalized_output_object: :normalized_output_object, object_bytes_fetched: :object_bytes_fetched, object_read_count: :object_read_count, planned_object_bytes: :planned_object_bytes, planned_object_read_count: :planned_object_read_count, planned_segment_count: :planned_segment_count, query: :query, query_id: :query_id, range_bytes_fetched: :range_bytes_fetched, range_read_count: :range_read_count, records_read: :records_read, ref: :ref, require_complete: :require_complete, routing_directory_object_id: :routing_directory_object_id, routing_plan: :routing_plan, routing_strategy: :routing_strategy, searched_segment_count: :searched_segment_count, segment_count: :segment_count, segment_searches: :segment_searches, selected_block_bytes: :selected_block_bytes, selected_block_count: :selected_block_count, selected_block_ids: :selected_block_ids, selected_segment_refs: :selected_segment_refs, skipped_segment_count: :skipped_segment_count, skipped_segment_refs: :skipped_segment_refs, snapshot_ref: :snapshot_ref, trace: :trace, uses_calibration: :uses_calibration, worker_completed_count: :worker_completed_count, worker_failed_count: :worker_failed_count, worker_task_count: :worker_task_count }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#block_cache_hits ⇒ Object
Returns the value of attribute block_cache_hits.
-
#block_cache_misses ⇒ Object
Returns the value of attribute block_cache_misses.
-
#budget_reasons ⇒ Object
Returns the value of attribute budget_reasons.
-
#calibration_id ⇒ Object
Returns the value of attribute calibration_id.
-
#calibration_object_id ⇒ Object
Returns the value of attribute calibration_object_id.
-
#calibration_profile ⇒ Object
Returns the value of attribute calibration_profile.
-
#collection_id ⇒ Object
Returns the value of attribute collection_id.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#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.
-
#execution_backend ⇒ Object
Returns the value of attribute execution_backend.
-
#execution_plan ⇒ Object
Returns the value of attribute execution_plan.
-
#execution_plan_object ⇒ Object
Returns the value of attribute execution_plan_object.
-
#execution_plan_object_id ⇒ Object
Returns the value of attribute execution_plan_object_id.
-
#hits ⇒ Object
Returns the value of attribute hits.
-
#is_distributed ⇒ Object
Returns the value of attribute is_distributed.
-
#is_within_budget ⇒ Object
Returns the value of attribute is_within_budget.
-
#materialized_bytes ⇒ Object
Returns the value of attribute materialized_bytes.
-
#max_workers ⇒ Object
Returns the value of attribute max_workers.
-
#normalized_output_object ⇒ Object
Returns the value of attribute normalized_output_object.
-
#object_bytes_fetched ⇒ Object
Returns the value of attribute object_bytes_fetched.
-
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
-
#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.
-
#planned_segment_count ⇒ Object
Returns the value of attribute planned_segment_count.
-
#query ⇒ Object
Returns the value of attribute query.
-
#query_id ⇒ Object
Returns the value of attribute query_id.
-
#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.
-
#require_complete ⇒ Object
Returns the value of attribute require_complete.
-
#routing_directory_object_id ⇒ Object
Returns the value of attribute routing_directory_object_id.
-
#routing_plan ⇒ Object
Returns the value of attribute routing_plan.
-
#routing_strategy ⇒ Object
Returns the value of attribute routing_strategy.
-
#searched_segment_count ⇒ Object
Returns the value of attribute searched_segment_count.
-
#segment_count ⇒ Object
Returns the value of attribute segment_count.
-
#segment_searches ⇒ Object
Returns the value of attribute segment_searches.
-
#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.
-
#selected_segment_refs ⇒ Object
Returns the value of attribute selected_segment_refs.
-
#skipped_segment_count ⇒ Object
Returns the value of attribute skipped_segment_count.
-
#skipped_segment_refs ⇒ Object
Returns the value of attribute skipped_segment_refs.
-
#snapshot_ref ⇒ Object
Returns the value of attribute snapshot_ref.
-
#trace ⇒ Object
Returns the value of attribute trace.
-
#uses_calibration ⇒ Object
Returns the value of attribute uses_calibration.
-
#worker_completed_count ⇒ Object
Returns the value of attribute worker_completed_count.
-
#worker_failed_count ⇒ Object
Returns the value of attribute worker_failed_count.
-
#worker_task_count ⇒ Object
Returns the value of attribute worker_task_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldCollectionSearchData
constructor
A new instance of FoldCollectionSearchData.
Constructor Details
#initialize(json) ⇒ FoldCollectionSearchData
Returns a new instance of FoldCollectionSearchData.
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 121 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @block_cache_hits = hash[:block_cache_hits] @block_cache_misses = hash[:block_cache_misses] @budget_reasons = (hash[:budget_reasons] || []) @calibration_id = hash[:calibration_id] @calibration_object_id = hash[:calibration_object_id] @calibration_profile = hash[:calibration_profile] ? Rafflesia::FoldCollectionCalibrationProfile.new(hash[:calibration_profile]) : nil @collection_id = hash[:collection_id] @dry_run = hash[:dry_run] @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] @execution_backend = hash[:execution_backend] @execution_plan = hash[:execution_plan] ? Rafflesia::FoldCollectionDistributedSearchPlan.new(hash[:execution_plan]) : nil @execution_plan_object = hash[:execution_plan_object] ? Rafflesia::ObjectRef.new(hash[:execution_plan_object]) : nil @execution_plan_object_id = hash[:execution_plan_object_id] @hits = (hash[:hits] || []).map { |item| item ? Rafflesia::FoldHit.new(item) : nil } @is_distributed = hash[:is_distributed] @is_within_budget = hash[:is_within_budget] @materialized_bytes = hash[:materialized_bytes] @max_workers = hash[:max_workers] @normalized_output_object = hash[:normalized_output_object] ? Rafflesia::ObjectRef.new(hash[:normalized_output_object]) : nil @object_bytes_fetched = hash[:object_bytes_fetched] @object_read_count = hash[:object_read_count] @planned_object_bytes = hash[:planned_object_bytes] @planned_object_read_count = hash[:planned_object_read_count] @planned_segment_count = hash[:planned_segment_count] @query = hash[:query] ? Rafflesia::FoldSegmentQueryFeature.new(hash[:query]) : nil @query_id = hash[:query_id] @range_bytes_fetched = hash[:range_bytes_fetched] @range_read_count = hash[:range_read_count] @records_read = hash[:records_read] @ref = hash[:ref] @require_complete = hash[:require_complete] @routing_directory_object_id = hash[:routing_directory_object_id] @routing_plan = hash[:routing_plan] ? Rafflesia::FoldCollectionRoutingPlan.new(hash[:routing_plan]) : nil @routing_strategy = hash[:routing_strategy] @searched_segment_count = hash[:searched_segment_count] @segment_count = hash[:segment_count] @segment_searches = (hash[:segment_searches] || []).map { |item| item ? Rafflesia::FoldCollectionSegmentSearchData.new(item) : nil } @selected_block_bytes = hash[:selected_block_bytes] @selected_block_count = hash[:selected_block_count] @selected_block_ids = (hash[:selected_block_ids] || []) @selected_segment_refs = (hash[:selected_segment_refs] || []) @skipped_segment_count = hash[:skipped_segment_count] @skipped_segment_refs = (hash[:skipped_segment_refs] || []) @snapshot_ref = hash[:snapshot_ref] @trace = hash[:trace] ? Rafflesia::FoldCollectionQueryTrace.new(hash[:trace]) : nil @uses_calibration = hash[:uses_calibration] @worker_completed_count = hash[:worker_completed_count] @worker_failed_count = hash[:worker_failed_count] @worker_task_count = hash[:worker_task_count] end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def backend @backend end |
#block_cache_hits ⇒ Object
Returns the value of attribute block_cache_hits.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def block_cache_hits @block_cache_hits end |
#block_cache_misses ⇒ Object
Returns the value of attribute block_cache_misses.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def block_cache_misses @block_cache_misses end |
#budget_reasons ⇒ Object
Returns the value of attribute budget_reasons.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def budget_reasons @budget_reasons end |
#calibration_id ⇒ Object
Returns the value of attribute calibration_id.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def calibration_id @calibration_id end |
#calibration_object_id ⇒ Object
Returns the value of attribute calibration_object_id.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def calibration_object_id @calibration_object_id end |
#calibration_profile ⇒ Object
Returns the value of attribute calibration_profile.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def calibration_profile @calibration_profile end |
#collection_id ⇒ Object
Returns the value of attribute collection_id.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def collection_id @collection_id end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def dry_run @dry_run end |
#exact_hit_count ⇒ Object
Returns the value of attribute exact_hit_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def exact_hit_count @exact_hit_count end |
#exact_materialized_bytes ⇒ Object
Returns the value of attribute exact_materialized_bytes.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def exact_materialized_bytes @exact_materialized_bytes end |
#exact_object_bytes_fetched ⇒ Object
Returns the value of attribute exact_object_bytes_fetched.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def exact_object_bytes_fetched @exact_object_bytes_fetched end |
#exact_object_read_count ⇒ Object
Returns the value of attribute exact_object_read_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def exact_object_read_count @exact_object_read_count end |
#exact_verified ⇒ Object
Returns the value of attribute exact_verified.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def exact_verified @exact_verified end |
#execution_backend ⇒ Object
Returns the value of attribute execution_backend.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def execution_backend @execution_backend end |
#execution_plan ⇒ Object
Returns the value of attribute execution_plan.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def execution_plan @execution_plan end |
#execution_plan_object ⇒ Object
Returns the value of attribute execution_plan_object.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def execution_plan_object @execution_plan_object end |
#execution_plan_object_id ⇒ Object
Returns the value of attribute execution_plan_object_id.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def execution_plan_object_id @execution_plan_object_id end |
#hits ⇒ Object
Returns the value of attribute hits.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def hits @hits end |
#is_distributed ⇒ Object
Returns the value of attribute is_distributed.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def is_distributed @is_distributed end |
#is_within_budget ⇒ Object
Returns the value of attribute is_within_budget.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def is_within_budget @is_within_budget end |
#materialized_bytes ⇒ Object
Returns the value of attribute materialized_bytes.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def materialized_bytes @materialized_bytes end |
#max_workers ⇒ Object
Returns the value of attribute max_workers.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def max_workers @max_workers end |
#normalized_output_object ⇒ Object
Returns the value of attribute normalized_output_object.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def normalized_output_object @normalized_output_object end |
#object_bytes_fetched ⇒ Object
Returns the value of attribute object_bytes_fetched.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def object_bytes_fetched @object_bytes_fetched end |
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def object_read_count @object_read_count end |
#planned_object_bytes ⇒ Object
Returns the value of attribute planned_object_bytes.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def planned_object_bytes @planned_object_bytes end |
#planned_object_read_count ⇒ Object
Returns the value of attribute planned_object_read_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def planned_object_read_count @planned_object_read_count end |
#planned_segment_count ⇒ Object
Returns the value of attribute planned_segment_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def planned_segment_count @planned_segment_count end |
#query ⇒ Object
Returns the value of attribute query.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def query @query end |
#query_id ⇒ Object
Returns the value of attribute query_id.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def query_id @query_id end |
#range_bytes_fetched ⇒ Object
Returns the value of attribute range_bytes_fetched.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def range_bytes_fetched @range_bytes_fetched end |
#range_read_count ⇒ Object
Returns the value of attribute range_read_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def range_read_count @range_read_count end |
#records_read ⇒ Object
Returns the value of attribute records_read.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def records_read @records_read end |
#ref ⇒ Object
Returns the value of attribute ref.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def ref @ref end |
#require_complete ⇒ Object
Returns the value of attribute require_complete.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def require_complete @require_complete end |
#routing_directory_object_id ⇒ Object
Returns the value of attribute routing_directory_object_id.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def routing_directory_object_id @routing_directory_object_id end |
#routing_plan ⇒ Object
Returns the value of attribute routing_plan.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def routing_plan @routing_plan end |
#routing_strategy ⇒ Object
Returns the value of attribute routing_strategy.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def routing_strategy @routing_strategy end |
#searched_segment_count ⇒ Object
Returns the value of attribute searched_segment_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def searched_segment_count @searched_segment_count end |
#segment_count ⇒ Object
Returns the value of attribute segment_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def segment_count @segment_count end |
#segment_searches ⇒ Object
Returns the value of attribute segment_searches.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def segment_searches @segment_searches end |
#selected_block_bytes ⇒ Object
Returns the value of attribute selected_block_bytes.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def selected_block_bytes @selected_block_bytes end |
#selected_block_count ⇒ Object
Returns the value of attribute selected_block_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def selected_block_count @selected_block_count end |
#selected_block_ids ⇒ Object
Returns the value of attribute selected_block_ids.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def selected_block_ids @selected_block_ids end |
#selected_segment_refs ⇒ Object
Returns the value of attribute selected_segment_refs.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def selected_segment_refs @selected_segment_refs end |
#skipped_segment_count ⇒ Object
Returns the value of attribute skipped_segment_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def skipped_segment_count @skipped_segment_count end |
#skipped_segment_refs ⇒ Object
Returns the value of attribute skipped_segment_refs.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def skipped_segment_refs @skipped_segment_refs end |
#snapshot_ref ⇒ Object
Returns the value of attribute snapshot_ref.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def snapshot_ref @snapshot_ref end |
#trace ⇒ Object
Returns the value of attribute trace.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def trace @trace end |
#uses_calibration ⇒ Object
Returns the value of attribute uses_calibration.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def uses_calibration @uses_calibration end |
#worker_completed_count ⇒ Object
Returns the value of attribute worker_completed_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def worker_completed_count @worker_completed_count end |
#worker_failed_count ⇒ Object
Returns the value of attribute worker_failed_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def worker_failed_count @worker_failed_count end |
#worker_task_count ⇒ Object
Returns the value of attribute worker_task_count.
65 66 67 |
# File 'lib/rafflesia/proteins/fold_collection_search_data.rb', line 65 def worker_task_count @worker_task_count end |