Class: Rafflesia::FoldIndexBenchmarkQueryResult
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldIndexBenchmarkQueryResult
- Defined in:
- lib/rafflesia/proteins/fold_index_benchmark_query_result.rb
Constant Summary collapse
- HASH_ATTRS =
{ full_scan_hit_count: :full_scan_hit_count, full_scan_materialized_bytes: :full_scan_materialized_bytes, full_scan_object_read_count: :full_scan_object_read_count, full_scan_searched_shard_count: :full_scan_searched_shard_count, query_id: :query_id, recall_at: :recall_at, routed_candidate_shard_ids: :routed_candidate_shard_ids, routed_fell_back_to_all_shards: :routed_fell_back_to_all_shards, routed_hit_count: :routed_hit_count, routed_materialized_bytes: :routed_materialized_bytes, routed_object_read_count: :routed_object_read_count, routed_searched_shard_count: :routed_searched_shard_count }.freeze
Instance Attribute Summary collapse
-
#full_scan_hit_count ⇒ Object
Returns the value of attribute full_scan_hit_count.
-
#full_scan_materialized_bytes ⇒ Object
Returns the value of attribute full_scan_materialized_bytes.
-
#full_scan_object_read_count ⇒ Object
Returns the value of attribute full_scan_object_read_count.
-
#full_scan_searched_shard_count ⇒ Object
Returns the value of attribute full_scan_searched_shard_count.
-
#query_id ⇒ Object
Returns the value of attribute query_id.
-
#recall_at ⇒ Object
Returns the value of attribute recall_at.
-
#routed_candidate_shard_ids ⇒ Object
Returns the value of attribute routed_candidate_shard_ids.
-
#routed_fell_back_to_all_shards ⇒ Object
Returns the value of attribute routed_fell_back_to_all_shards.
-
#routed_hit_count ⇒ Object
Returns the value of attribute routed_hit_count.
-
#routed_materialized_bytes ⇒ Object
Returns the value of attribute routed_materialized_bytes.
-
#routed_object_read_count ⇒ Object
Returns the value of attribute routed_object_read_count.
-
#routed_searched_shard_count ⇒ Object
Returns the value of attribute routed_searched_shard_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldIndexBenchmarkQueryResult
constructor
A new instance of FoldIndexBenchmarkQueryResult.
Constructor Details
#initialize(json) ⇒ FoldIndexBenchmarkQueryResult
Returns a new instance of FoldIndexBenchmarkQueryResult.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @full_scan_hit_count = hash[:full_scan_hit_count] @full_scan_materialized_bytes = hash[:full_scan_materialized_bytes] @full_scan_object_read_count = hash[:full_scan_object_read_count] @full_scan_searched_shard_count = hash[:full_scan_searched_shard_count] @query_id = hash[:query_id] @recall_at = (hash[:recall_at] || []).map { |item| item ? Rafflesia::FoldIndexRecallMeasurement.new(item) : nil } @routed_candidate_shard_ids = (hash[:routed_candidate_shard_ids] || []) @routed_fell_back_to_all_shards = hash[:routed_fell_back_to_all_shards] @routed_hit_count = hash[:routed_hit_count] @routed_materialized_bytes = hash[:routed_materialized_bytes] @routed_object_read_count = hash[:routed_object_read_count] @routed_searched_shard_count = hash[:routed_searched_shard_count] end |
Instance Attribute Details
#full_scan_hit_count ⇒ Object
Returns the value of attribute full_scan_hit_count.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def full_scan_hit_count @full_scan_hit_count end |
#full_scan_materialized_bytes ⇒ Object
Returns the value of attribute full_scan_materialized_bytes.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def full_scan_materialized_bytes @full_scan_materialized_bytes end |
#full_scan_object_read_count ⇒ Object
Returns the value of attribute full_scan_object_read_count.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def full_scan_object_read_count @full_scan_object_read_count end |
#full_scan_searched_shard_count ⇒ Object
Returns the value of attribute full_scan_searched_shard_count.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def full_scan_searched_shard_count @full_scan_searched_shard_count end |
#query_id ⇒ Object
Returns the value of attribute query_id.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def query_id @query_id end |
#recall_at ⇒ Object
Returns the value of attribute recall_at.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def recall_at @recall_at end |
#routed_candidate_shard_ids ⇒ Object
Returns the value of attribute routed_candidate_shard_ids.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def routed_candidate_shard_ids @routed_candidate_shard_ids end |
#routed_fell_back_to_all_shards ⇒ Object
Returns the value of attribute routed_fell_back_to_all_shards.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def routed_fell_back_to_all_shards @routed_fell_back_to_all_shards end |
#routed_hit_count ⇒ Object
Returns the value of attribute routed_hit_count.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def routed_hit_count @routed_hit_count end |
#routed_materialized_bytes ⇒ Object
Returns the value of attribute routed_materialized_bytes.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def routed_materialized_bytes @routed_materialized_bytes end |
#routed_object_read_count ⇒ Object
Returns the value of attribute routed_object_read_count.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def routed_object_read_count @routed_object_read_count end |
#routed_searched_shard_count ⇒ Object
Returns the value of attribute routed_searched_shard_count.
23 24 25 |
# File 'lib/rafflesia/proteins/fold_index_benchmark_query_result.rb', line 23 def routed_searched_shard_count @routed_searched_shard_count end |