Class: Rafflesia::FoldCollectionSearchWorkerTask

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

Instance Method Summary collapse

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

#decisionObject

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_runObject

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_limitObject

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_verifyObject

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_idObject

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_statusObject

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

#limitObject

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_idObject

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

#nprobeObject

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

#planObject

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_bytesObject

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_countObject

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_idObject

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

#refObject

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_materializationObject

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_objectObject

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_idObject

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_rankObject

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_scoreObject

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_idObject

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_idObject

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_idObject

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