Class: Rafflesia::FoldSegmentBenchmarkData

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

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  baseline_nprobe: :baseline_nprobe,
  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,
  benchmark_id: :benchmark_id,
  benchmark_object: :benchmark_object,
  byte_reduction_fraction: :byte_reduction_fraction,
  created_at: :created_at,
  eligible_query_count: :eligible_query_count,
  gate: :gate,
  limit: :limit,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  mean_hit_overlap_fraction: :mean_hit_overlap_fraction,
  nprobe: :nprobe,
  object_read_reduction_fraction: :object_read_reduction_fraction,
  passed: :passed,
  query_count: :query_count,
  recall_at: :recall_at,
  ref: :ref,
  results: :results,
  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_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,
  segment_id: :segment_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentBenchmarkData

Returns a new instance of FoldSegmentBenchmarkData.



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_segment_benchmark_data.rb', line 99

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @backend = hash[:backend]
  @baseline_nprobe = hash[:baseline_nprobe]
  @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]
  @benchmark_id = hash[:benchmark_id]
  @benchmark_object = hash[:benchmark_object] ? Rafflesia::ObjectRef.new(hash[:benchmark_object]) : nil
  @byte_reduction_fraction = hash[:byte_reduction_fraction]
  @created_at = hash[:created_at]
  @eligible_query_count = hash[:eligible_query_count]
  @gate = hash[:gate] ? Rafflesia::FoldSegmentBenchmarkGate.new(hash[:gate]) : nil
  @limit = hash[:limit]
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @mean_hit_overlap_fraction = hash[:mean_hit_overlap_fraction]
  @nprobe = hash[:nprobe]
  @object_read_reduction_fraction = hash[:object_read_reduction_fraction]
  @passed = hash[:passed]
  @query_count = hash[:query_count]
  @recall_at = (hash[:recall_at] || []).map { |item| item ? Rafflesia::FoldSegmentRecallMeasurement.new(item) : nil }
  @ref = hash[:ref]
  @results = (hash[:results] || []).map { |item| item ? Rafflesia::FoldSegmentBenchmarkQueryResult.new(item) : nil }
  @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_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] || [])
  @segment_id = hash[:segment_id]
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



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

def backend
  @backend
end

#baseline_nprobeObject

Returns the value of attribute baseline_nprobe.



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

def baseline_nprobe
  @baseline_nprobe
end

#baseline_object_bytes_fetchedObject

Returns the value of attribute baseline_object_bytes_fetched.



54
55
56
# File 'lib/rafflesia/proteins/fold_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.rb', line 54

def baseline_range_read_count
  @baseline_range_read_count
end

#baseline_selected_block_bytesObject

Returns the value of attribute baseline_selected_block_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_segment_benchmark_data.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_segment_benchmark_data.rb', line 54

def baseline_selected_block_count
  @baseline_selected_block_count
end

#benchmark_idObject

Returns the value of attribute benchmark_id.



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

def benchmark_id
  @benchmark_id
end

#benchmark_objectObject

Returns the value of attribute benchmark_object.



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

def benchmark_object
  @benchmark_object
end

#byte_reduction_fractionObject

Returns the value of attribute byte_reduction_fraction.



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

def byte_reduction_fraction
  @byte_reduction_fraction
end

#created_atObject

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#eligible_query_countObject

Returns the value of attribute eligible_query_count.



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

def eligible_query_count
  @eligible_query_count
end

#gateObject

Returns the value of attribute gate.



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

def gate
  @gate
end

#limitObject

Returns the value of attribute limit.



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

def limit
  @limit
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



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

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



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

def manifest_path
  @manifest_path
end

#mean_hit_overlap_fractionObject

Returns the value of attribute mean_hit_overlap_fraction.



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

def mean_hit_overlap_fraction
  @mean_hit_overlap_fraction
end

#nprobeObject

Returns the value of attribute nprobe.



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

def nprobe
  @nprobe
end

#object_read_reduction_fractionObject

Returns the value of attribute object_read_reduction_fraction.



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

def object_read_reduction_fraction
  @object_read_reduction_fraction
end

#passedObject

Returns the value of attribute passed.



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

def passed
  @passed
end

#query_countObject

Returns the value of attribute query_count.



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

def query_count
  @query_count
end

#recall_atObject

Returns the value of attribute recall_at.



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

def recall_at
  @recall_at
end

#refObject

Returns the value of attribute ref.



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

def ref
  @ref
end

#resultsObject

Returns the value of attribute results.



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

def results
  @results
end

#routed_exact_hit_countObject

Returns the value of attribute routed_exact_hit_count.



54
55
56
# File 'lib/rafflesia/proteins/fold_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.rb', line 54

def routed_exact_verified
  @routed_exact_verified
end

#routed_materialized_bytesObject

Returns the value of attribute routed_materialized_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.rb', line 54

def routed_range_read_count
  @routed_range_read_count
end

#routed_selected_block_bytesObject

Returns the value of attribute routed_selected_block_bytes.



54
55
56
# File 'lib/rafflesia/proteins/fold_segment_benchmark_data.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_segment_benchmark_data.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_segment_benchmark_data.rb', line 54

def routed_selected_block_ids
  @routed_selected_block_ids
end

#segment_idObject

Returns the value of attribute segment_id.



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

def segment_id
  @segment_id
end