Class: Rafflesia::FoldSegmentBenchmarkSummary

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

Constant Summary collapse

HASH_ATTRS =
{
  benchmark_id: :benchmark_id,
  byte_reduction_fraction: :byte_reduction_fraction,
  eligible_query_count: :eligible_query_count,
  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_1: :recall_at_1,
  recall_at_10: :recall_at_10,
  recall_at_100: :recall_at_100,
  routed_exact_hit_count: :routed_exact_hit_count,
  routed_exact_verified: :routed_exact_verified,
  routed_materialized_bytes: :routed_materialized_bytes,
  routed_range_bytes_fetched: :routed_range_bytes_fetched,
  routed_range_read_count: :routed_range_read_count,
  routed_selected_block_bytes: :routed_selected_block_bytes,
  segment_id: :segment_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentBenchmarkSummary

Returns a new instance of FoldSegmentBenchmarkSummary.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @benchmark_id = hash[:benchmark_id]
  @byte_reduction_fraction = hash[:byte_reduction_fraction]
  @eligible_query_count = hash[:eligible_query_count]
  @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_1 = hash[:recall_at_1]
  @recall_at_10 = hash[:recall_at_10]
  @recall_at_100 = hash[:recall_at_100]
  @routed_exact_hit_count = hash[:routed_exact_hit_count]
  @routed_exact_verified = hash[:routed_exact_verified]
  @routed_materialized_bytes = hash[:routed_materialized_bytes]
  @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]
  @segment_id = hash[:segment_id]
end

Instance Attribute Details

#benchmark_idObject

Returns the value of attribute benchmark_id.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def benchmark_id
  @benchmark_id
end

#byte_reduction_fractionObject

Returns the value of attribute byte_reduction_fraction.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def byte_reduction_fraction
  @byte_reduction_fraction
end

#eligible_query_countObject

Returns the value of attribute eligible_query_count.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def eligible_query_count
  @eligible_query_count
end

#mean_hit_overlap_fractionObject

Returns the value of attribute mean_hit_overlap_fraction.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def mean_hit_overlap_fraction
  @mean_hit_overlap_fraction
end

#nprobeObject

Returns the value of attribute nprobe.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def nprobe
  @nprobe
end

#object_read_reduction_fractionObject

Returns the value of attribute object_read_reduction_fraction.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def object_read_reduction_fraction
  @object_read_reduction_fraction
end

#passedObject

Returns the value of attribute passed.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def passed
  @passed
end

#query_countObject

Returns the value of attribute query_count.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def query_count
  @query_count
end

#recall_at_1Object

Returns the value of attribute recall_at_1.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def recall_at_1
  @recall_at_1
end

#recall_at_10Object

Returns the value of attribute recall_at_10.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def recall_at_10
  @recall_at_10
end

#recall_at_100Object

Returns the value of attribute recall_at_100.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def recall_at_100
  @recall_at_100
end

#routed_exact_hit_countObject

Returns the value of attribute routed_exact_hit_count.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def routed_exact_hit_count
  @routed_exact_hit_count
end

#routed_exact_verifiedObject

Returns the value of attribute routed_exact_verified.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def routed_exact_verified
  @routed_exact_verified
end

#routed_materialized_bytesObject

Returns the value of attribute routed_materialized_bytes.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def routed_materialized_bytes
  @routed_materialized_bytes
end

#routed_range_bytes_fetchedObject

Returns the value of attribute routed_range_bytes_fetched.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def routed_range_bytes_fetched
  @routed_range_bytes_fetched
end

#routed_range_read_countObject

Returns the value of attribute routed_range_read_count.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def routed_range_read_count
  @routed_range_read_count
end

#routed_selected_block_bytesObject

Returns the value of attribute routed_selected_block_bytes.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def routed_selected_block_bytes
  @routed_selected_block_bytes
end

#segment_idObject

Returns the value of attribute segment_id.



29
30
31
# File 'lib/rafflesia/proteins/fold_segment_benchmark_summary.rb', line 29

def segment_id
  @segment_id
end