Class: Rafflesia::FoldCollectionSegmentSearchData

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

Instance Method Summary collapse

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_hitsObject

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_missesObject

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_countObject

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_bytesObject

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_fetchedObject

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_countObject

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_verifiedObject

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_countObject

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_idObject

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_bytesObject

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_fetchedObject

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_countObject

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

#planObject

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_bytesObject

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_countObject

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_fetchedObject

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_countObject

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_readObject

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

#refObject

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_rankObject

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_scoreObject

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_idObject

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_bytesObject

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_countObject

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_idsObject

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_msObject

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_errorObject

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_atObject

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_idObject

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_idObject

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_statusObject

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_objectObject

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_idObject

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_atObject

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_statusObject

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