Class: Rafflesia::CorpuReleaseBenchmarkRow

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/corpu_release_benchmark_row.rb

Constant Summary collapse

HASH_ATTRS =
{
  benchmark_variant: :benchmark_variant,
  build_millis: :build_millis,
  bytes_read_total: :bytes_read_total,
  candidate_rank_strategy: :candidate_rank_strategy,
  candidates_examined_total: :candidates_examined_total,
  hit_rate_at_k: :hit_rate_at_k,
  max_candidates: :max_candidates,
  max_query_posting_blocks: :max_query_posting_blocks,
  max_shards: :max_shards,
  max_verifications: :max_verifications,
  mean_recall_at_k: :mean_recall_at_k,
  object_reads_total: :object_reads_total,
  optimizer: :optimizer,
  postings_range_coalesce_gap_bytes: :postings_range_coalesce_gap_bytes,
  postings_range_coalesce_max_span_bytes: :postings_range_coalesce_max_span_bytes,
  recall_millis: :recall_millis,
  release_id: :release_id,
  routing_mode: :routing_mode,
  target_shard_score_coverage: :target_shard_score_coverage,
  verification_band: :verification_band
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CorpuReleaseBenchmarkRow

Returns a new instance of CorpuReleaseBenchmarkRow.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 53

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @benchmark_variant = hash[:benchmark_variant]
  @build_millis = hash[:build_millis]
  @bytes_read_total = hash[:bytes_read_total]
  @candidate_rank_strategy = hash[:candidate_rank_strategy]
  @candidates_examined_total = hash[:candidates_examined_total]
  @hit_rate_at_k = hash[:hit_rate_at_k]
  @max_candidates = hash[:max_candidates]
  @max_query_posting_blocks = hash[:max_query_posting_blocks]
  @max_shards = hash[:max_shards]
  @max_verifications = hash[:max_verifications]
  @mean_recall_at_k = hash[:mean_recall_at_k]
  @object_reads_total = hash[:object_reads_total]
  @optimizer = hash[:optimizer] || {}
  @postings_range_coalesce_gap_bytes = hash[:postings_range_coalesce_gap_bytes]
  @postings_range_coalesce_max_span_bytes = hash[:postings_range_coalesce_max_span_bytes]
  @recall_millis = hash[:recall_millis]
  @release_id = hash[:release_id]
  @routing_mode = hash[:routing_mode]
  @target_shard_score_coverage = hash[:target_shard_score_coverage]
  @verification_band = hash[:verification_band]
end

Instance Attribute Details

#benchmark_variantObject

Returns the value of attribute benchmark_variant.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def benchmark_variant
  @benchmark_variant
end

#build_millisObject

Returns the value of attribute build_millis.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def build_millis
  @build_millis
end

#bytes_read_totalObject

Returns the value of attribute bytes_read_total.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def bytes_read_total
  @bytes_read_total
end

#candidate_rank_strategyObject

Returns the value of attribute candidate_rank_strategy.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def candidate_rank_strategy
  @candidate_rank_strategy
end

#candidates_examined_totalObject

Returns the value of attribute candidates_examined_total.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def candidates_examined_total
  @candidates_examined_total
end

#hit_rate_at_kObject

Returns the value of attribute hit_rate_at_k.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def hit_rate_at_k
  @hit_rate_at_k
end

#max_candidatesObject

Returns the value of attribute max_candidates.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def max_candidates
  @max_candidates
end

#max_query_posting_blocksObject

Returns the value of attribute max_query_posting_blocks.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def max_query_posting_blocks
  @max_query_posting_blocks
end

#max_shardsObject

Returns the value of attribute max_shards.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def max_shards
  @max_shards
end

#max_verificationsObject

Returns the value of attribute max_verifications.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def max_verifications
  @max_verifications
end

#mean_recall_at_kObject

Returns the value of attribute mean_recall_at_k.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def mean_recall_at_k
  @mean_recall_at_k
end

#object_reads_totalObject

Returns the value of attribute object_reads_total.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def object_reads_total
  @object_reads_total
end

#optimizerObject

Returns the value of attribute optimizer.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def optimizer
  @optimizer
end

#postings_range_coalesce_gap_bytesObject

Returns the value of attribute postings_range_coalesce_gap_bytes.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def postings_range_coalesce_gap_bytes
  @postings_range_coalesce_gap_bytes
end

#postings_range_coalesce_max_span_bytesObject

Returns the value of attribute postings_range_coalesce_max_span_bytes.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def postings_range_coalesce_max_span_bytes
  @postings_range_coalesce_max_span_bytes
end

#recall_millisObject

Returns the value of attribute recall_millis.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def recall_millis
  @recall_millis
end

#release_idObject

Returns the value of attribute release_id.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def release_id
  @release_id
end

#routing_modeObject

Returns the value of attribute routing_mode.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def routing_mode
  @routing_mode
end

#target_shard_score_coverageObject

Returns the value of attribute target_shard_score_coverage.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def target_shard_score_coverage
  @target_shard_score_coverage
end

#verification_bandObject

Returns the value of attribute verification_band.



31
32
33
# File 'lib/rafflesia/datasets/corpu_release_benchmark_row.rb', line 31

def verification_band
  @verification_band
end