Class: Rafflesia::FoldSearchBenchmarkQueryResult

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

Constant Summary collapse

HASH_ATTRS =
{
  baseline_elapsed_ms: :baseline_elapsed_ms,
  baseline_hit_count: :baseline_hit_count,
  baseline_materialized_bytes: :baseline_materialized_bytes,
  hit_overlap_fraction: :hit_overlap_fraction,
  mean_rank_delta: :mean_rank_delta,
  object_native_budget_reasons: :object_native_budget_reasons,
  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_hit_count: :object_native_hit_count,
  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,
  object_native_selected_block_ids: :object_native_selected_block_ids,
  object_native_within_budget: :object_native_within_budget,
  overlap_count: :overlap_count,
  query_id: :query_id,
  recall_at: :recall_at
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSearchBenchmarkQueryResult

Returns a new instance of FoldSearchBenchmarkQueryResult.



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 63

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @baseline_elapsed_ms = hash[:baseline_elapsed_ms]
  @baseline_hit_count = hash[:baseline_hit_count]
  @baseline_materialized_bytes = hash[:baseline_materialized_bytes]
  @hit_overlap_fraction = hash[:hit_overlap_fraction]
  @mean_rank_delta = hash[:mean_rank_delta]
  @object_native_budget_reasons = (hash[:object_native_budget_reasons] || [])
  @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_hit_count = hash[:object_native_hit_count]
  @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]
  @object_native_selected_block_ids = (hash[:object_native_selected_block_ids] || [])
  @object_native_within_budget = hash[:object_native_within_budget]
  @overlap_count = hash[:overlap_count]
  @query_id = hash[:query_id]
  @recall_at = (hash[:recall_at] || []).map { |item| item ? Rafflesia::FoldIndexRecallMeasurement.new(item) : nil }
end

Instance Attribute Details

#baseline_elapsed_msObject

Returns the value of attribute baseline_elapsed_ms.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def baseline_elapsed_ms
  @baseline_elapsed_ms
end

#baseline_hit_countObject

Returns the value of attribute baseline_hit_count.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def baseline_hit_count
  @baseline_hit_count
end

#baseline_materialized_bytesObject

Returns the value of attribute baseline_materialized_bytes.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def baseline_materialized_bytes
  @baseline_materialized_bytes
end

#hit_overlap_fractionObject

Returns the value of attribute hit_overlap_fraction.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def hit_overlap_fraction
  @hit_overlap_fraction
end

#mean_rank_deltaObject

Returns the value of attribute mean_rank_delta.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def mean_rank_delta
  @mean_rank_delta
end

#object_native_budget_reasonsObject

Returns the value of attribute object_native_budget_reasons.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def object_native_budget_reasons
  @object_native_budget_reasons
end

#object_native_elapsed_msObject

Returns the value of attribute object_native_elapsed_ms.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def object_native_exact_verified
  @object_native_exact_verified
end

#object_native_hit_countObject

Returns the value of attribute object_native_hit_count.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def object_native_hit_count
  @object_native_hit_count
end

#object_native_materialized_bytesObject

Returns the value of attribute object_native_materialized_bytes.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def object_native_materialized_bytes
  @object_native_materialized_bytes
end

#object_native_object_bytesObject

Returns the value of attribute object_native_object_bytes.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

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.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def object_native_selected_block_ids
  @object_native_selected_block_ids
end

#object_native_within_budgetObject

Returns the value of attribute object_native_within_budget.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def object_native_within_budget
  @object_native_within_budget
end

#overlap_countObject

Returns the value of attribute overlap_count.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def overlap_count
  @overlap_count
end

#query_idObject

Returns the value of attribute query_id.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def query_id
  @query_id
end

#recall_atObject

Returns the value of attribute recall_at.



36
37
38
# File 'lib/rafflesia/proteins/fold_search_benchmark_query_result.rb', line 36

def recall_at
  @recall_at
end