Class: Rafflesia::FoldCollectionBenchmarkQueryResult

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

Constant Summary collapse

HASH_ATTRS =
{
  baseline_block_cache_hits: :baseline_block_cache_hits,
  baseline_block_cache_misses: :baseline_block_cache_misses,
  baseline_hit_count: :baseline_hit_count,
  baseline_materialized_bytes: :baseline_materialized_bytes,
  baseline_object_bytes_fetched: :baseline_object_bytes_fetched,
  baseline_object_read_count: :baseline_object_read_count,
  baseline_planned_object_bytes: :baseline_planned_object_bytes,
  baseline_planned_object_reads: :baseline_planned_object_reads,
  baseline_range_bytes_fetched: :baseline_range_bytes_fetched,
  baseline_range_read_count: :baseline_range_read_count,
  baseline_searched_segment_count: :baseline_searched_segment_count,
  baseline_selected_block_bytes: :baseline_selected_block_bytes,
  baseline_selected_block_count: :baseline_selected_block_count,
  baseline_trace: :baseline_trace,
  hit_overlap_fraction: :hit_overlap_fraction,
  query_id: :query_id,
  recall_at: :recall_at,
  routed_block_cache_hits: :routed_block_cache_hits,
  routed_block_cache_misses: :routed_block_cache_misses,
  routed_budget_reasons: :routed_budget_reasons,
  routed_exact_hit_count: :routed_exact_hit_count,
  routed_exact_materialized_bytes: :routed_exact_materialized_bytes,
  routed_exact_object_bytes: :routed_exact_object_bytes,
  routed_exact_object_read_count: :routed_exact_object_read_count,
  routed_exact_verified: :routed_exact_verified,
  routed_hit_count: :routed_hit_count,
  routed_materialized_bytes: :routed_materialized_bytes,
  routed_object_bytes_fetched: :routed_object_bytes_fetched,
  routed_object_read_count: :routed_object_read_count,
  routed_planned_object_bytes: :routed_planned_object_bytes,
  routed_planned_object_reads: :routed_planned_object_reads,
  routed_range_bytes_fetched: :routed_range_bytes_fetched,
  routed_range_read_count: :routed_range_read_count,
  routed_routing_mode: :routed_routing_mode,
  routed_routing_strategy: :routed_routing_strategy,
  routed_score_coverage: :routed_score_coverage,
  routed_searched_segment_count: :routed_searched_segment_count,
  routed_selected_block_bytes: :routed_selected_block_bytes,
  routed_selected_block_count: :routed_selected_block_count,
  routed_selected_block_ids: :routed_selected_block_ids,
  routed_skipped_segment_count: :routed_skipped_segment_count,
  routed_trace: :routed_trace,
  routed_within_physical_budgets: :routed_within_physical_budgets
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldCollectionBenchmarkQueryResult

Returns a new instance of FoldCollectionBenchmarkQueryResult.



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
140
141
142
143
144
145
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 99

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @baseline_block_cache_hits = hash[:baseline_block_cache_hits]
  @baseline_block_cache_misses = hash[:baseline_block_cache_misses]
  @baseline_hit_count = hash[:baseline_hit_count]
  @baseline_materialized_bytes = hash[:baseline_materialized_bytes]
  @baseline_object_bytes_fetched = hash[:baseline_object_bytes_fetched]
  @baseline_object_read_count = hash[:baseline_object_read_count]
  @baseline_planned_object_bytes = hash[:baseline_planned_object_bytes]
  @baseline_planned_object_reads = hash[:baseline_planned_object_reads]
  @baseline_range_bytes_fetched = hash[:baseline_range_bytes_fetched]
  @baseline_range_read_count = hash[:baseline_range_read_count]
  @baseline_searched_segment_count = hash[:baseline_searched_segment_count]
  @baseline_selected_block_bytes = hash[:baseline_selected_block_bytes]
  @baseline_selected_block_count = hash[:baseline_selected_block_count]
  @baseline_trace = hash[:baseline_trace] ? Rafflesia::FoldCollectionQueryTrace.new(hash[:baseline_trace]) : nil
  @hit_overlap_fraction = hash[:hit_overlap_fraction]
  @query_id = hash[:query_id]
  @recall_at = (hash[:recall_at] || []).map { |item| item ? Rafflesia::FoldSegmentRecallMeasurement.new(item) : nil }
  @routed_block_cache_hits = hash[:routed_block_cache_hits]
  @routed_block_cache_misses = hash[:routed_block_cache_misses]
  @routed_budget_reasons = (hash[:routed_budget_reasons] || [])
  @routed_exact_hit_count = hash[:routed_exact_hit_count]
  @routed_exact_materialized_bytes = hash[:routed_exact_materialized_bytes]
  @routed_exact_object_bytes = hash[:routed_exact_object_bytes]
  @routed_exact_object_read_count = hash[:routed_exact_object_read_count]
  @routed_exact_verified = hash[:routed_exact_verified]
  @routed_hit_count = hash[:routed_hit_count]
  @routed_materialized_bytes = hash[:routed_materialized_bytes]
  @routed_object_bytes_fetched = hash[:routed_object_bytes_fetched]
  @routed_object_read_count = hash[:routed_object_read_count]
  @routed_planned_object_bytes = hash[:routed_planned_object_bytes]
  @routed_planned_object_reads = hash[:routed_planned_object_reads]
  @routed_range_bytes_fetched = hash[:routed_range_bytes_fetched]
  @routed_range_read_count = hash[:routed_range_read_count]
  @routed_routing_mode = hash[:routed_routing_mode]
  @routed_routing_strategy = hash[:routed_routing_strategy]
  @routed_score_coverage = hash[:routed_score_coverage]
  @routed_searched_segment_count = hash[:routed_searched_segment_count]
  @routed_selected_block_bytes = hash[:routed_selected_block_bytes]
  @routed_selected_block_count = hash[:routed_selected_block_count]
  @routed_selected_block_ids = (hash[:routed_selected_block_ids] || [])
  @routed_skipped_segment_count = hash[:routed_skipped_segment_count]
  @routed_trace = hash[:routed_trace] ? Rafflesia::FoldCollectionQueryTrace.new(hash[:routed_trace]) : nil
  @routed_within_physical_budgets = hash[:routed_within_physical_budgets]
end

Instance Attribute Details

#baseline_block_cache_hitsObject

Returns the value of attribute baseline_block_cache_hits.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_block_cache_hits
  @baseline_block_cache_hits
end

#baseline_block_cache_missesObject

Returns the value of attribute baseline_block_cache_misses.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_block_cache_misses
  @baseline_block_cache_misses
end

#baseline_hit_countObject

Returns the value of attribute baseline_hit_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_hit_count
  @baseline_hit_count
end

#baseline_materialized_bytesObject

Returns the value of attribute baseline_materialized_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_materialized_bytes
  @baseline_materialized_bytes
end

#baseline_object_bytes_fetchedObject

Returns the value of attribute baseline_object_bytes_fetched.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_object_bytes_fetched
  @baseline_object_bytes_fetched
end

#baseline_object_read_countObject

Returns the value of attribute baseline_object_read_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_object_read_count
  @baseline_object_read_count
end

#baseline_planned_object_bytesObject

Returns the value of attribute baseline_planned_object_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_planned_object_bytes
  @baseline_planned_object_bytes
end

#baseline_planned_object_readsObject

Returns the value of attribute baseline_planned_object_reads.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_planned_object_reads
  @baseline_planned_object_reads
end

#baseline_range_bytes_fetchedObject

Returns the value of attribute baseline_range_bytes_fetched.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_range_bytes_fetched
  @baseline_range_bytes_fetched
end

#baseline_range_read_countObject

Returns the value of attribute baseline_range_read_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_range_read_count
  @baseline_range_read_count
end

#baseline_searched_segment_countObject

Returns the value of attribute baseline_searched_segment_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_searched_segment_count
  @baseline_searched_segment_count
end

#baseline_selected_block_bytesObject

Returns the value of attribute baseline_selected_block_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_selected_block_bytes
  @baseline_selected_block_bytes
end

#baseline_selected_block_countObject

Returns the value of attribute baseline_selected_block_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_selected_block_count
  @baseline_selected_block_count
end

#baseline_traceObject

Returns the value of attribute baseline_trace.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def baseline_trace
  @baseline_trace
end

#hit_overlap_fractionObject

Returns the value of attribute hit_overlap_fraction.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def hit_overlap_fraction
  @hit_overlap_fraction
end

#query_idObject

Returns the value of attribute query_id.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def query_id
  @query_id
end

#recall_atObject

Returns the value of attribute recall_at.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def recall_at
  @recall_at
end

#routed_block_cache_hitsObject

Returns the value of attribute routed_block_cache_hits.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_block_cache_hits
  @routed_block_cache_hits
end

#routed_block_cache_missesObject

Returns the value of attribute routed_block_cache_misses.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_block_cache_misses
  @routed_block_cache_misses
end

#routed_budget_reasonsObject

Returns the value of attribute routed_budget_reasons.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_budget_reasons
  @routed_budget_reasons
end

#routed_exact_hit_countObject

Returns the value of attribute routed_exact_hit_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_exact_hit_count
  @routed_exact_hit_count
end

#routed_exact_materialized_bytesObject

Returns the value of attribute routed_exact_materialized_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_exact_materialized_bytes
  @routed_exact_materialized_bytes
end

#routed_exact_object_bytesObject

Returns the value of attribute routed_exact_object_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_exact_object_bytes
  @routed_exact_object_bytes
end

#routed_exact_object_read_countObject

Returns the value of attribute routed_exact_object_read_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_exact_object_read_count
  @routed_exact_object_read_count
end

#routed_exact_verifiedObject

Returns the value of attribute routed_exact_verified.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_exact_verified
  @routed_exact_verified
end

#routed_hit_countObject

Returns the value of attribute routed_hit_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_hit_count
  @routed_hit_count
end

#routed_materialized_bytesObject

Returns the value of attribute routed_materialized_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_materialized_bytes
  @routed_materialized_bytes
end

#routed_object_bytes_fetchedObject

Returns the value of attribute routed_object_bytes_fetched.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_object_bytes_fetched
  @routed_object_bytes_fetched
end

#routed_object_read_countObject

Returns the value of attribute routed_object_read_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_object_read_count
  @routed_object_read_count
end

#routed_planned_object_bytesObject

Returns the value of attribute routed_planned_object_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_planned_object_bytes
  @routed_planned_object_bytes
end

#routed_planned_object_readsObject

Returns the value of attribute routed_planned_object_reads.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_planned_object_reads
  @routed_planned_object_reads
end

#routed_range_bytes_fetchedObject

Returns the value of attribute routed_range_bytes_fetched.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_range_bytes_fetched
  @routed_range_bytes_fetched
end

#routed_range_read_countObject

Returns the value of attribute routed_range_read_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_range_read_count
  @routed_range_read_count
end

#routed_routing_modeObject

Returns the value of attribute routed_routing_mode.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_routing_mode
  @routed_routing_mode
end

#routed_routing_strategyObject

Returns the value of attribute routed_routing_strategy.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_routing_strategy
  @routed_routing_strategy
end

#routed_score_coverageObject

Returns the value of attribute routed_score_coverage.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_score_coverage
  @routed_score_coverage
end

#routed_searched_segment_countObject

Returns the value of attribute routed_searched_segment_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_searched_segment_count
  @routed_searched_segment_count
end

#routed_selected_block_bytesObject

Returns the value of attribute routed_selected_block_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_selected_block_bytes
  @routed_selected_block_bytes
end

#routed_selected_block_countObject

Returns the value of attribute routed_selected_block_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_selected_block_count
  @routed_selected_block_count
end

#routed_selected_block_idsObject

Returns the value of attribute routed_selected_block_ids.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_selected_block_ids
  @routed_selected_block_ids
end

#routed_skipped_segment_countObject

Returns the value of attribute routed_skipped_segment_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_skipped_segment_count
  @routed_skipped_segment_count
end

#routed_traceObject

Returns the value of attribute routed_trace.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_trace
  @routed_trace
end

#routed_within_physical_budgetsObject

Returns the value of attribute routed_within_physical_budgets.



54
55
56
# File 'lib/rafflesia/proteins/fold_collection_benchmark_query_result.rb', line 54

def routed_within_physical_budgets
  @routed_within_physical_budgets
end