Class: Rafflesia::FoldSegmentBenchmarkQueryResult

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_segment_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_selected_block_bytes: :baseline_selected_block_bytes,
  baseline_selected_block_count: :baseline_selected_block_count,
  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_selected_block_bytes: :routed_selected_block_bytes,
  routed_selected_block_count: :routed_selected_block_count,
  routed_selected_block_ids: :routed_selected_block_ids,
  routed_within_physical_budgets: :routed_within_physical_budgets
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentBenchmarkQueryResult

Returns a new instance of FoldSegmentBenchmarkQueryResult.



83
84
85
86
87
88
89
90
91
92
93
94
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
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 83

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_selected_block_bytes = hash[:baseline_selected_block_bytes]
  @baseline_selected_block_count = hash[:baseline_selected_block_count]
  @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_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_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.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_block_cache_hits
  @baseline_block_cache_hits
end

#baseline_block_cache_missesObject

Returns the value of attribute baseline_block_cache_misses.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_block_cache_misses
  @baseline_block_cache_misses
end

#baseline_hit_countObject

Returns the value of attribute baseline_hit_count.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_hit_count
  @baseline_hit_count
end

#baseline_materialized_bytesObject

Returns the value of attribute baseline_materialized_bytes.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_materialized_bytes
  @baseline_materialized_bytes
end

#baseline_object_bytes_fetchedObject

Returns the value of attribute baseline_object_bytes_fetched.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_object_bytes_fetched
  @baseline_object_bytes_fetched
end

#baseline_object_read_countObject

Returns the value of attribute baseline_object_read_count.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_object_read_count
  @baseline_object_read_count
end

#baseline_planned_object_bytesObject

Returns the value of attribute baseline_planned_object_bytes.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_planned_object_bytes
  @baseline_planned_object_bytes
end

#baseline_planned_object_readsObject

Returns the value of attribute baseline_planned_object_reads.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_planned_object_reads
  @baseline_planned_object_reads
end

#baseline_range_bytes_fetchedObject

Returns the value of attribute baseline_range_bytes_fetched.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_range_bytes_fetched
  @baseline_range_bytes_fetched
end

#baseline_range_read_countObject

Returns the value of attribute baseline_range_read_count.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_range_read_count
  @baseline_range_read_count
end

#baseline_selected_block_bytesObject

Returns the value of attribute baseline_selected_block_bytes.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_selected_block_bytes
  @baseline_selected_block_bytes
end

#baseline_selected_block_countObject

Returns the value of attribute baseline_selected_block_count.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def baseline_selected_block_count
  @baseline_selected_block_count
end

#hit_overlap_fractionObject

Returns the value of attribute hit_overlap_fraction.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def hit_overlap_fraction
  @hit_overlap_fraction
end

#query_idObject

Returns the value of attribute query_id.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def query_id
  @query_id
end

#recall_atObject

Returns the value of attribute recall_at.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def recall_at
  @recall_at
end

#routed_block_cache_hitsObject

Returns the value of attribute routed_block_cache_hits.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_block_cache_hits
  @routed_block_cache_hits
end

#routed_block_cache_missesObject

Returns the value of attribute routed_block_cache_misses.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_block_cache_misses
  @routed_block_cache_misses
end

#routed_budget_reasonsObject

Returns the value of attribute routed_budget_reasons.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_budget_reasons
  @routed_budget_reasons
end

#routed_exact_hit_countObject

Returns the value of attribute routed_exact_hit_count.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_exact_hit_count
  @routed_exact_hit_count
end

#routed_exact_materialized_bytesObject

Returns the value of attribute routed_exact_materialized_bytes.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_exact_materialized_bytes
  @routed_exact_materialized_bytes
end

#routed_exact_object_bytesObject

Returns the value of attribute routed_exact_object_bytes.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

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.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_exact_object_read_count
  @routed_exact_object_read_count
end

#routed_exact_verifiedObject

Returns the value of attribute routed_exact_verified.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_exact_verified
  @routed_exact_verified
end

#routed_hit_countObject

Returns the value of attribute routed_hit_count.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_hit_count
  @routed_hit_count
end

#routed_materialized_bytesObject

Returns the value of attribute routed_materialized_bytes.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_materialized_bytes
  @routed_materialized_bytes
end

#routed_object_bytes_fetchedObject

Returns the value of attribute routed_object_bytes_fetched.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_object_bytes_fetched
  @routed_object_bytes_fetched
end

#routed_object_read_countObject

Returns the value of attribute routed_object_read_count.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_object_read_count
  @routed_object_read_count
end

#routed_planned_object_bytesObject

Returns the value of attribute routed_planned_object_bytes.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_planned_object_bytes
  @routed_planned_object_bytes
end

#routed_planned_object_readsObject

Returns the value of attribute routed_planned_object_reads.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_planned_object_reads
  @routed_planned_object_reads
end

#routed_range_bytes_fetchedObject

Returns the value of attribute routed_range_bytes_fetched.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_range_bytes_fetched
  @routed_range_bytes_fetched
end

#routed_range_read_countObject

Returns the value of attribute routed_range_read_count.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_range_read_count
  @routed_range_read_count
end

#routed_selected_block_bytesObject

Returns the value of attribute routed_selected_block_bytes.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_selected_block_bytes
  @routed_selected_block_bytes
end

#routed_selected_block_countObject

Returns the value of attribute routed_selected_block_count.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_selected_block_count
  @routed_selected_block_count
end

#routed_selected_block_idsObject

Returns the value of attribute routed_selected_block_ids.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_selected_block_ids
  @routed_selected_block_ids
end

#routed_within_physical_budgetsObject

Returns the value of attribute routed_within_physical_budgets.



46
47
48
# File 'lib/rafflesia/proteins/fold_segment_benchmark_query_result.rb', line 46

def routed_within_physical_budgets
  @routed_within_physical_budgets
end