Class: Rafflesia::FoldCollectionSearchWorkerTask
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldCollectionSearchWorkerTask
- Defined in:
- lib/rafflesia/proteins/fold_collection_search_worker_task.rb
Constant Summary collapse
- HASH_ATTRS =
{ decision: :decision, dry_run: :dry_run, exact_limit: :exact_limit, exact_verify: :exact_verify, job_id: :job_id, job_status: :job_status, limit: :limit, manifest_object_id: :manifest_object_id, nprobe: :nprobe, plan: :plan, planned_object_bytes: :planned_object_bytes, planned_object_read_count: :planned_object_read_count, query_id: :query_id, ref: :ref, require_zero_materialization: :require_zero_materialization, result_object: :result_object, result_object_id: :result_object_id, routing_rank: :routing_rank, routing_score: :routing_score, segment_id: :segment_id, task_id: :task_id, worker_id: :worker_id }.freeze
Instance Attribute Summary collapse
-
#decision ⇒ Object
Returns the value of attribute decision.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#exact_limit ⇒ Object
Returns the value of attribute exact_limit.
-
#exact_verify ⇒ Object
Returns the value of attribute exact_verify.
-
#job_id ⇒ Object
Returns the value of attribute job_id.
-
#job_status ⇒ Object
Returns the value of attribute job_status.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#nprobe ⇒ Object
Returns the value of attribute nprobe.
-
#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.
-
#query_id ⇒ Object
Returns the value of attribute query_id.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#require_zero_materialization ⇒ Object
Returns the value of attribute require_zero_materialization.
-
#result_object ⇒ Object
Returns the value of attribute result_object.
-
#result_object_id ⇒ Object
Returns the value of attribute result_object_id.
-
#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.
-
#task_id ⇒ Object
Returns the value of attribute task_id.
-
#worker_id ⇒ Object
Returns the value of attribute worker_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldCollectionSearchWorkerTask
constructor
A new instance of FoldCollectionSearchWorkerTask.
Constructor Details
#initialize(json) ⇒ FoldCollectionSearchWorkerTask
Returns a new instance of FoldCollectionSearchWorkerTask.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 57 def initialize(json) super() hash = self.class.normalize(json) @decision = hash[:decision] ? Rafflesia::FoldCollectionRoutingDecision.new(hash[:decision]) : nil @dry_run = hash[:dry_run] @exact_limit = hash[:exact_limit] @exact_verify = hash[:exact_verify] @job_id = hash[:job_id] @job_status = hash[:job_status] @limit = hash[:limit] @manifest_object_id = hash[:manifest_object_id] @nprobe = hash[:nprobe] @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] @query_id = hash[:query_id] @ref = hash[:ref] @require_zero_materialization = hash[:require_zero_materialization] @result_object = hash[:result_object] ? Rafflesia::ObjectRef.new(hash[:result_object]) : nil @result_object_id = hash[:result_object_id] @routing_rank = hash[:routing_rank] @routing_score = hash[:routing_score] @segment_id = hash[:segment_id] @task_id = hash[:task_id] @worker_id = hash[:worker_id] end |
Instance Attribute Details
#decision ⇒ Object
Returns the value of attribute decision.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def decision @decision end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def dry_run @dry_run end |
#exact_limit ⇒ Object
Returns the value of attribute exact_limit.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def exact_limit @exact_limit end |
#exact_verify ⇒ Object
Returns the value of attribute exact_verify.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def exact_verify @exact_verify end |
#job_id ⇒ Object
Returns the value of attribute job_id.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def job_id @job_id end |
#job_status ⇒ Object
Returns the value of attribute job_status.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def job_status @job_status end |
#limit ⇒ Object
Returns the value of attribute limit.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def limit @limit end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def manifest_object_id @manifest_object_id end |
#nprobe ⇒ Object
Returns the value of attribute nprobe.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def nprobe @nprobe end |
#plan ⇒ Object
Returns the value of attribute plan.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def plan @plan end |
#planned_object_bytes ⇒ Object
Returns the value of attribute planned_object_bytes.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def planned_object_bytes @planned_object_bytes end |
#planned_object_read_count ⇒ Object
Returns the value of attribute planned_object_read_count.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def planned_object_read_count @planned_object_read_count end |
#query_id ⇒ Object
Returns the value of attribute query_id.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def query_id @query_id end |
#ref ⇒ Object
Returns the value of attribute ref.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def ref @ref end |
#require_zero_materialization ⇒ Object
Returns the value of attribute require_zero_materialization.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def require_zero_materialization @require_zero_materialization end |
#result_object ⇒ Object
Returns the value of attribute result_object.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def result_object @result_object end |
#result_object_id ⇒ Object
Returns the value of attribute result_object_id.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def result_object_id @result_object_id end |
#routing_rank ⇒ Object
Returns the value of attribute routing_rank.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def routing_rank @routing_rank end |
#routing_score ⇒ Object
Returns the value of attribute routing_score.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def routing_score @routing_score end |
#segment_id ⇒ Object
Returns the value of attribute segment_id.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def segment_id @segment_id end |
#task_id ⇒ Object
Returns the value of attribute task_id.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def task_id @task_id end |
#worker_id ⇒ Object
Returns the value of attribute worker_id.
33 34 35 |
# File 'lib/rafflesia/proteins/fold_collection_search_worker_task.rb', line 33 def worker_id @worker_id end |