Class: Rafflesia::FoldSegmentSearchData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_segment_search_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  block_cache_hits: :block_cache_hits,
  block_cache_misses: :block_cache_misses,
  block_map_content_sha256: :block_map_content_sha_256,
  block_map_object_id: :block_map_object_id,
  candidate_hit_count: :candidate_hit_count,
  exact_backend: :exact_backend,
  exact_candidate_count: :exact_candidate_count,
  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,
  hits: :hits,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  materialized_bytes: :materialized_bytes,
  normalized_output_object: :normalized_output_object,
  object_bytes_fetched: :object_bytes_fetched,
  object_read_count: :object_read_count,
  plan: :plan,
  query: :query,
  query_id: :query_id,
  range_bytes_fetched: :range_bytes_fetched,
  range_read_count: :range_read_count,
  reads: :reads,
  records_read: :records_read,
  ref: :ref,
  relation: :relation,
  selected_block_bytes: :selected_block_bytes,
  selected_block_count: :selected_block_count,
  selected_block_ids: :selected_block_ids
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentSearchData

Returns a new instance of FoldSegmentSearchData.



77
78
79
80
81
82
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
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 77

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]
  @block_map_content_sha_256 = hash[:block_map_content_sha256]
  @block_map_object_id = hash[:block_map_object_id]
  @candidate_hit_count = hash[:candidate_hit_count]
  @exact_backend = hash[:exact_backend]
  @exact_candidate_count = hash[:exact_candidate_count]
  @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]
  @hits = (hash[:hits] || []).map { |item| item ? Rafflesia::FoldHit.new(item) : nil }
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @materialized_bytes = hash[:materialized_bytes]
  @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]
  @plan = hash[:plan] ? Rafflesia::SearchSegmentPlanData.new(hash[:plan]) : nil
  @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]
  @reads = (hash[:reads] || []).map { |item| item ? Rafflesia::SearchSegmentObjectReadPlan.new(item) : nil }
  @records_read = hash[:records_read]
  @ref = hash[:ref]
  @relation = hash[:relation] ? Rafflesia::RelationArtifactData.new(hash[:relation]) : nil
  @selected_block_bytes = hash[:selected_block_bytes]
  @selected_block_count = hash[:selected_block_count]
  @selected_block_ids = (hash[:selected_block_ids] || [])
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def backend
  @backend
end

#block_cache_hitsObject

Returns the value of attribute block_cache_hits.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def block_cache_hits
  @block_cache_hits
end

#block_cache_missesObject

Returns the value of attribute block_cache_misses.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def block_cache_misses
  @block_cache_misses
end

#block_map_content_sha_256Object

Returns the value of attribute block_map_content_sha_256.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def block_map_content_sha_256
  @block_map_content_sha_256
end

#block_map_object_idObject

Returns the value of attribute block_map_object_id.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def block_map_object_id
  @block_map_object_id
end

#candidate_hit_countObject

Returns the value of attribute candidate_hit_count.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def candidate_hit_count
  @candidate_hit_count
end

#exact_backendObject

Returns the value of attribute exact_backend.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def exact_backend
  @exact_backend
end

#exact_candidate_countObject

Returns the value of attribute exact_candidate_count.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def exact_candidate_count
  @exact_candidate_count
end

#exact_hit_countObject

Returns the value of attribute exact_hit_count.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def exact_hit_count
  @exact_hit_count
end

#exact_materialized_bytesObject

Returns the value of attribute exact_materialized_bytes.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def exact_materialized_bytes
  @exact_materialized_bytes
end

#exact_object_bytes_fetchedObject

Returns the value of attribute exact_object_bytes_fetched.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def exact_object_bytes_fetched
  @exact_object_bytes_fetched
end

#exact_object_read_countObject

Returns the value of attribute exact_object_read_count.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def exact_object_read_count
  @exact_object_read_count
end

#exact_verifiedObject

Returns the value of attribute exact_verified.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def exact_verified
  @exact_verified
end

#hitsObject

Returns the value of attribute hits.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def hits
  @hits
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def manifest_path
  @manifest_path
end

#materialized_bytesObject

Returns the value of attribute materialized_bytes.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def materialized_bytes
  @materialized_bytes
end

#normalized_output_objectObject

Returns the value of attribute normalized_output_object.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def normalized_output_object
  @normalized_output_object
end

#object_bytes_fetchedObject

Returns the value of attribute object_bytes_fetched.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def object_bytes_fetched
  @object_bytes_fetched
end

#object_read_countObject

Returns the value of attribute object_read_count.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def object_read_count
  @object_read_count
end

#planObject

Returns the value of attribute plan.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def plan
  @plan
end

#queryObject

Returns the value of attribute query.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def query
  @query
end

#query_idObject

Returns the value of attribute query_id.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def query_id
  @query_id
end

#range_bytes_fetchedObject

Returns the value of attribute range_bytes_fetched.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def range_bytes_fetched
  @range_bytes_fetched
end

#range_read_countObject

Returns the value of attribute range_read_count.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def range_read_count
  @range_read_count
end

#readsObject

Returns the value of attribute reads.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def reads
  @reads
end

#records_readObject

Returns the value of attribute records_read.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def records_read
  @records_read
end

#refObject

Returns the value of attribute ref.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def ref
  @ref
end

#relationObject

Returns the value of attribute relation.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def relation
  @relation
end

#selected_block_bytesObject

Returns the value of attribute selected_block_bytes.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def selected_block_bytes
  @selected_block_bytes
end

#selected_block_countObject

Returns the value of attribute selected_block_count.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def selected_block_count
  @selected_block_count
end

#selected_block_idsObject

Returns the value of attribute selected_block_ids.



43
44
45
# File 'lib/rafflesia/proteins/fold_segment_search_data.rb', line 43

def selected_block_ids
  @selected_block_ids
end