Class: Rafflesia::FoldCollectionSearchData

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#backendObject

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_hitsObject

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_missesObject

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_reasonsObject

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_idObject

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_idObject

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_profileObject

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_idObject

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_runObject

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_countObject

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_bytesObject

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_fetchedObject

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_countObject

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_verifiedObject

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_backendObject

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_planObject

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_objectObject

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_idObject

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

#hitsObject

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_distributedObject

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_budgetObject

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_bytesObject

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_workersObject

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_objectObject

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_fetchedObject

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_countObject

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_bytesObject

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_countObject

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_countObject

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

#queryObject

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_idObject

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_fetchedObject

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_countObject

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_readObject

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

#refObject

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_completeObject

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_idObject

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_planObject

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_strategyObject

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_countObject

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_countObject

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_searchesObject

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_bytesObject

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_countObject

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_idsObject

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_refsObject

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_countObject

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_refsObject

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_refObject

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

#traceObject

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_calibrationObject

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_countObject

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_countObject

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_countObject

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