Class: Rafflesia::FoldSearchBenchmarkData

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

Constant Summary collapse

HASH_ATTRS =
{
  baseline_backend: :baseline_backend,
  baseline_elapsed_ms: :baseline_elapsed_ms,
  baseline_materialized_bytes: :baseline_materialized_bytes,
  baselines: :baselines,
  benchmark_id: :benchmark_id,
  benchmark_object: :benchmark_object,
  byte_reduction_fraction: :byte_reduction_fraction,
  created_at: :created_at,
  eligible_query_count: :eligible_query_count,
  gate: :gate,
  index_ref: :index_ref,
  limit: :limit,
  manifest_id: :manifest_id,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  mean_hit_overlap_fraction: :mean_hit_overlap_fraction,
  mean_rank_delta: :mean_rank_delta,
  nprobe: :nprobe,
  object_native_backend: :object_native_backend,
  object_native_elapsed_ms: :object_native_elapsed_ms,
  object_native_exact_hit_count: :object_native_exact_hit_count,
  object_native_exact_materialized_bytes: :object_native_exact_materialized_bytes,
  object_native_exact_object_bytes: :object_native_exact_object_bytes,
  object_native_exact_object_read_count: :object_native_exact_object_read_count,
  object_native_exact_verified: :object_native_exact_verified,
  object_native_materialized_bytes: :object_native_materialized_bytes,
  object_native_object_bytes: :object_native_object_bytes,
  object_native_object_read_count: :object_native_object_read_count,
  object_native_range_bytes_fetched: :object_native_range_bytes_fetched,
  object_native_range_read_count: :object_native_range_read_count,
  object_native_searches: :object_native_searches,
  object_native_selected_block_bytes: :object_native_selected_block_bytes,
  object_native_selected_block_count: :object_native_selected_block_count,
  object_native_selected_block_ids: :object_native_selected_block_ids,
  passed: :passed,
  query_count: :query_count,
  recall_at: :recall_at,
  results: :results,
  segment_manifest_object_id: :segment_manifest_object_id,
  segment_manifest_path: :segment_manifest_path,
  segment_ref: :segment_ref
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSearchBenchmarkData

Returns a new instance of FoldSearchBenchmarkData.



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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 95

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @baseline_backend = hash[:baseline_backend]
  @baseline_elapsed_ms = hash[:baseline_elapsed_ms]
  @baseline_materialized_bytes = hash[:baseline_materialized_bytes]
  @baselines = (hash[:baselines] || []).map { |item| item ? Rafflesia::FoldSearchData.new(item) : nil }
  @benchmark_id = hash[:benchmark_id]
  @benchmark_object = hash[:benchmark_object] ? Rafflesia::ObjectRef.new(hash[:benchmark_object]) : nil
  @byte_reduction_fraction = hash[:byte_reduction_fraction]
  @created_at = hash[:created_at]
  @eligible_query_count = hash[:eligible_query_count]
  @gate = hash[:gate] ? Rafflesia::FoldSearchBenchmarkGate.new(hash[:gate]) : nil
  @index_ref = hash[:index_ref]
  @limit = hash[:limit]
  @manifest_id = hash[:manifest_id]
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @mean_hit_overlap_fraction = hash[:mean_hit_overlap_fraction]
  @mean_rank_delta = hash[:mean_rank_delta]
  @nprobe = hash[:nprobe]
  @object_native_backend = hash[:object_native_backend]
  @object_native_elapsed_ms = hash[:object_native_elapsed_ms]
  @object_native_exact_hit_count = hash[:object_native_exact_hit_count]
  @object_native_exact_materialized_bytes = hash[:object_native_exact_materialized_bytes]
  @object_native_exact_object_bytes = hash[:object_native_exact_object_bytes]
  @object_native_exact_object_read_count = hash[:object_native_exact_object_read_count]
  @object_native_exact_verified = hash[:object_native_exact_verified]
  @object_native_materialized_bytes = hash[:object_native_materialized_bytes]
  @object_native_object_bytes = hash[:object_native_object_bytes]
  @object_native_object_read_count = hash[:object_native_object_read_count]
  @object_native_range_bytes_fetched = hash[:object_native_range_bytes_fetched]
  @object_native_range_read_count = hash[:object_native_range_read_count]
  @object_native_searches = (hash[:object_native_searches] || []).map { |item| item ? Rafflesia::FoldSegmentSearchData.new(item) : nil }
  @object_native_selected_block_bytes = hash[:object_native_selected_block_bytes]
  @object_native_selected_block_count = hash[:object_native_selected_block_count]
  @object_native_selected_block_ids = (hash[:object_native_selected_block_ids] || [])
  @passed = hash[:passed]
  @query_count = hash[:query_count]
  @recall_at = (hash[:recall_at] || []).map { |item| item ? Rafflesia::FoldIndexRecallMeasurement.new(item) : nil }
  @results = (hash[:results] || []).map { |item| item ? Rafflesia::FoldSearchBenchmarkQueryResult.new(item) : nil }
  @segment_manifest_object_id = hash[:segment_manifest_object_id]
  @segment_manifest_path = hash[:segment_manifest_path]
  @segment_ref = hash[:segment_ref]
end

Instance Attribute Details

#baseline_backendObject

Returns the value of attribute baseline_backend.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def baseline_backend
  @baseline_backend
end

#baseline_elapsed_msObject

Returns the value of attribute baseline_elapsed_ms.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def baseline_elapsed_ms
  @baseline_elapsed_ms
end

#baseline_materialized_bytesObject

Returns the value of attribute baseline_materialized_bytes.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def baseline_materialized_bytes
  @baseline_materialized_bytes
end

#baselinesObject

Returns the value of attribute baselines.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def baselines
  @baselines
end

#benchmark_idObject

Returns the value of attribute benchmark_id.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def benchmark_id
  @benchmark_id
end

#benchmark_objectObject

Returns the value of attribute benchmark_object.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def benchmark_object
  @benchmark_object
end

#byte_reduction_fractionObject

Returns the value of attribute byte_reduction_fraction.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def byte_reduction_fraction
  @byte_reduction_fraction
end

#created_atObject

Returns the value of attribute created_at.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def created_at
  @created_at
end

#eligible_query_countObject

Returns the value of attribute eligible_query_count.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def eligible_query_count
  @eligible_query_count
end

#gateObject

Returns the value of attribute gate.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def gate
  @gate
end

#index_refObject

Returns the value of attribute index_ref.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def index_ref
  @index_ref
end

#limitObject

Returns the value of attribute limit.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def limit
  @limit
end

#manifest_idObject

Returns the value of attribute manifest_id.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def manifest_id
  @manifest_id
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def manifest_path
  @manifest_path
end

#mean_hit_overlap_fractionObject

Returns the value of attribute mean_hit_overlap_fraction.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def mean_hit_overlap_fraction
  @mean_hit_overlap_fraction
end

#mean_rank_deltaObject

Returns the value of attribute mean_rank_delta.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def mean_rank_delta
  @mean_rank_delta
end

#nprobeObject

Returns the value of attribute nprobe.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def nprobe
  @nprobe
end

#object_native_backendObject

Returns the value of attribute object_native_backend.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_backend
  @object_native_backend
end

#object_native_elapsed_msObject

Returns the value of attribute object_native_elapsed_ms.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_elapsed_ms
  @object_native_elapsed_ms
end

#object_native_exact_hit_countObject

Returns the value of attribute object_native_exact_hit_count.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_exact_hit_count
  @object_native_exact_hit_count
end

#object_native_exact_materialized_bytesObject

Returns the value of attribute object_native_exact_materialized_bytes.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_exact_materialized_bytes
  @object_native_exact_materialized_bytes
end

#object_native_exact_object_bytesObject

Returns the value of attribute object_native_exact_object_bytes.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_exact_object_bytes
  @object_native_exact_object_bytes
end

#object_native_exact_object_read_countObject

Returns the value of attribute object_native_exact_object_read_count.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_exact_object_read_count
  @object_native_exact_object_read_count
end

#object_native_exact_verifiedObject

Returns the value of attribute object_native_exact_verified.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_exact_verified
  @object_native_exact_verified
end

#object_native_materialized_bytesObject

Returns the value of attribute object_native_materialized_bytes.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_materialized_bytes
  @object_native_materialized_bytes
end

#object_native_object_bytesObject

Returns the value of attribute object_native_object_bytes.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_object_bytes
  @object_native_object_bytes
end

#object_native_object_read_countObject

Returns the value of attribute object_native_object_read_count.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_object_read_count
  @object_native_object_read_count
end

#object_native_range_bytes_fetchedObject

Returns the value of attribute object_native_range_bytes_fetched.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_range_bytes_fetched
  @object_native_range_bytes_fetched
end

#object_native_range_read_countObject

Returns the value of attribute object_native_range_read_count.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_range_read_count
  @object_native_range_read_count
end

#object_native_searchesObject

Returns the value of attribute object_native_searches.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_searches
  @object_native_searches
end

#object_native_selected_block_bytesObject

Returns the value of attribute object_native_selected_block_bytes.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_selected_block_bytes
  @object_native_selected_block_bytes
end

#object_native_selected_block_countObject

Returns the value of attribute object_native_selected_block_count.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_selected_block_count
  @object_native_selected_block_count
end

#object_native_selected_block_idsObject

Returns the value of attribute object_native_selected_block_ids.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def object_native_selected_block_ids
  @object_native_selected_block_ids
end

#passedObject

Returns the value of attribute passed.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def passed
  @passed
end

#query_countObject

Returns the value of attribute query_count.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def query_count
  @query_count
end

#recall_atObject

Returns the value of attribute recall_at.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def recall_at
  @recall_at
end

#resultsObject

Returns the value of attribute results.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def results
  @results
end

#segment_manifest_object_idObject

Returns the value of attribute segment_manifest_object_id.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def segment_manifest_object_id
  @segment_manifest_object_id
end

#segment_manifest_pathObject

Returns the value of attribute segment_manifest_path.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def segment_manifest_path
  @segment_manifest_path
end

#segment_refObject

Returns the value of attribute segment_ref.



52
53
54
# File 'lib/rafflesia/proteins/fold_search_benchmark_data.rb', line 52

def segment_ref
  @segment_ref
end