Class: Rafflesia::FoldSearchBenchmarkSummary

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

Constant Summary collapse

HASH_ATTRS =
{
  benchmark_id: :benchmark_id,
  byte_reduction_fraction: :byte_reduction_fraction,
  eligible_query_count: :eligible_query_count,
  manifest_id: :manifest_id,
  mean_hit_overlap_fraction: :mean_hit_overlap_fraction,
  nprobe: :nprobe,
  object_native_exact_hit_count: :object_native_exact_hit_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_selected_block_bytes: :object_native_selected_block_bytes,
  object_native_selected_block_count: :object_native_selected_block_count,
  passed: :passed,
  query_count: :query_count,
  recall_at_1: :recall_at_1,
  recall_at_10: :recall_at_10,
  recall_at_100: :recall_at_100,
  segment_manifest_object_id: :segment_manifest_object_id,
  segment_ref: :segment_ref
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSearchBenchmarkSummary

Returns a new instance of FoldSearchBenchmarkSummary.



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_search_benchmark_summary.rb', line 57

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @benchmark_id = hash[:benchmark_id]
  @byte_reduction_fraction = hash[:byte_reduction_fraction]
  @eligible_query_count = hash[:eligible_query_count]
  @manifest_id = hash[:manifest_id]
  @mean_hit_overlap_fraction = hash[:mean_hit_overlap_fraction]
  @nprobe = hash[:nprobe]
  @object_native_exact_hit_count = hash[:object_native_exact_hit_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_selected_block_bytes = hash[:object_native_selected_block_bytes]
  @object_native_selected_block_count = hash[:object_native_selected_block_count]
  @passed = hash[:passed]
  @query_count = hash[:query_count]
  @recall_at_1 = hash[:recall_at_1]
  @recall_at_10 = hash[:recall_at_10]
  @recall_at_100 = hash[:recall_at_100]
  @segment_manifest_object_id = hash[:segment_manifest_object_id]
  @segment_ref = hash[:segment_ref]
end

Instance Attribute Details

#benchmark_idObject

Returns the value of attribute benchmark_id.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def benchmark_id
  @benchmark_id
end

#byte_reduction_fractionObject

Returns the value of attribute byte_reduction_fraction.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def byte_reduction_fraction
  @byte_reduction_fraction
end

#eligible_query_countObject

Returns the value of attribute eligible_query_count.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def eligible_query_count
  @eligible_query_count
end

#manifest_idObject

Returns the value of attribute manifest_id.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def manifest_id
  @manifest_id
end

#mean_hit_overlap_fractionObject

Returns the value of attribute mean_hit_overlap_fraction.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def mean_hit_overlap_fraction
  @mean_hit_overlap_fraction
end

#nprobeObject

Returns the value of attribute nprobe.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def nprobe
  @nprobe
end

#object_native_exact_hit_countObject

Returns the value of attribute object_native_exact_hit_count.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def object_native_exact_hit_count
  @object_native_exact_hit_count
end

#object_native_exact_verifiedObject

Returns the value of attribute object_native_exact_verified.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def object_native_exact_verified
  @object_native_exact_verified
end

#object_native_materialized_bytesObject

Returns the value of attribute object_native_materialized_bytes.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def object_native_materialized_bytes
  @object_native_materialized_bytes
end

#object_native_object_bytesObject

Returns the value of attribute object_native_object_bytes.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

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.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

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.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

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.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def object_native_range_read_count
  @object_native_range_read_count
end

#object_native_selected_block_bytesObject

Returns the value of attribute object_native_selected_block_bytes.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

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.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def object_native_selected_block_count
  @object_native_selected_block_count
end

#passedObject

Returns the value of attribute passed.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def passed
  @passed
end

#query_countObject

Returns the value of attribute query_count.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def query_count
  @query_count
end

#recall_at_1Object

Returns the value of attribute recall_at_1.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def recall_at_1
  @recall_at_1
end

#recall_at_10Object

Returns the value of attribute recall_at_10.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def recall_at_10
  @recall_at_10
end

#recall_at_100Object

Returns the value of attribute recall_at_100.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def recall_at_100
  @recall_at_100
end

#segment_manifest_object_idObject

Returns the value of attribute segment_manifest_object_id.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def segment_manifest_object_id
  @segment_manifest_object_id
end

#segment_refObject

Returns the value of attribute segment_ref.



33
34
35
# File 'lib/rafflesia/proteins/fold_search_benchmark_summary.rb', line 33

def segment_ref
  @segment_ref
end