Class: Rafflesia::CorpuReleaseBenchmarkData

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

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  calibrated_query_profile_rows: :calibrated_query_profile_rows,
  calibrated_query_profiles_path: :calibrated_query_profiles_path,
  corpus: :corpus,
  engine: :engine,
  family: :family,
  gates: :gates,
  kind: :kind,
  object_store_root: :object_store_root,
  ok: :ok,
  planner_delta: :planner_delta,
  planner_delta_artifact_path: :planner_delta_artifact_path,
  query_count: :query_count,
  query_profile_audit: :query_profile_audit,
  query_profile_rows: :query_profile_rows,
  query_profiles_path: :query_profiles_path,
  rows: :rows,
  sequence_planner_calibration_path: :sequence_planner_calibration_path,
  source: :source,
  structure_pair_geometry_comparison: :structure_pair_geometry_comparison,
  structure_pair_geometry_evidence_jsonl_path: :structure_pair_geometry_evidence_jsonl_path,
  structure_pair_geometry_evidence_tsv_path: :structure_pair_geometry_evidence_tsv_path,
  structure_pair_geometry_summary_path: :structure_pair_geometry_summary_path
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CorpuReleaseBenchmarkData

Returns a new instance of CorpuReleaseBenchmarkData.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 59

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @backend = hash[:backend]
  @calibrated_query_profile_rows = hash[:calibrated_query_profile_rows]
  @calibrated_query_profiles_path = hash[:calibrated_query_profiles_path]
  @corpus = hash[:corpus]
  @engine = hash[:engine]
  @family = hash[:family]
  @gates = (hash[:gates] || []).map { |item| item ? Rafflesia::CorpuReleaseBenchmarkGate.new(item) : nil }
  @kind = hash[:kind]
  @object_store_root = hash[:object_store_root]
  @ok = hash[:ok]
  @planner_delta = hash[:planner_delta] ? Rafflesia::CorpuReleasePlannerDeltaArtifact.new(hash[:planner_delta]) : nil
  @planner_delta_artifact_path = hash[:planner_delta_artifact_path]
  @query_count = hash[:query_count]
  @query_profile_audit = hash[:query_profile_audit] ? Rafflesia::BiosearchQueryProfileAuditRunData.new(hash[:query_profile_audit]) : nil
  @query_profile_rows = hash[:query_profile_rows]
  @query_profiles_path = hash[:query_profiles_path]
  @rows = (hash[:rows] || []).map { |item| item ? Rafflesia::CorpuReleaseBenchmarkRow.new(item) : nil }
  @sequence_planner_calibration_path = hash[:sequence_planner_calibration_path]
  @source = hash[:source] ? Rafflesia::CorpuReleaseSourceSnapshot.new(hash[:source]) : nil
  @structure_pair_geometry_comparison = hash[:structure_pair_geometry_comparison] ? Rafflesia::CorpuReleaseStructurePairGeometryComparison.new(hash[:structure_pair_geometry_comparison]) : nil
  @structure_pair_geometry_evidence_jsonl_path = hash[:structure_pair_geometry_evidence_jsonl_path]
  @structure_pair_geometry_evidence_tsv_path = hash[:structure_pair_geometry_evidence_tsv_path]
  @structure_pair_geometry_summary_path = hash[:structure_pair_geometry_summary_path]
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def backend
  @backend
end

#calibrated_query_profile_rowsObject

Returns the value of attribute calibrated_query_profile_rows.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def calibrated_query_profile_rows
  @calibrated_query_profile_rows
end

#calibrated_query_profiles_pathObject

Returns the value of attribute calibrated_query_profiles_path.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def calibrated_query_profiles_path
  @calibrated_query_profiles_path
end

#corpusObject

Returns the value of attribute corpus.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def corpus
  @corpus
end

#engineObject

Returns the value of attribute engine.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def engine
  @engine
end

#familyObject

Returns the value of attribute family.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def family
  @family
end

#gatesObject

Returns the value of attribute gates.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def gates
  @gates
end

#kindObject

Returns the value of attribute kind.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def kind
  @kind
end

#object_store_rootObject

Returns the value of attribute object_store_root.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def object_store_root
  @object_store_root
end

#okObject

Returns the value of attribute ok.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def ok
  @ok
end

#planner_deltaObject

Returns the value of attribute planner_delta.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def planner_delta
  @planner_delta
end

#planner_delta_artifact_pathObject

Returns the value of attribute planner_delta_artifact_path.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def planner_delta_artifact_path
  @planner_delta_artifact_path
end

#query_countObject

Returns the value of attribute query_count.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def query_count
  @query_count
end

#query_profile_auditObject

Returns the value of attribute query_profile_audit.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def query_profile_audit
  @query_profile_audit
end

#query_profile_rowsObject

Returns the value of attribute query_profile_rows.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def query_profile_rows
  @query_profile_rows
end

#query_profiles_pathObject

Returns the value of attribute query_profiles_path.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def query_profiles_path
  @query_profiles_path
end

#rowsObject

Returns the value of attribute rows.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def rows
  @rows
end

#sequence_planner_calibration_pathObject

Returns the value of attribute sequence_planner_calibration_path.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def sequence_planner_calibration_path
  @sequence_planner_calibration_path
end

#sourceObject

Returns the value of attribute source.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def source
  @source
end

#structure_pair_geometry_comparisonObject

Returns the value of attribute structure_pair_geometry_comparison.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def structure_pair_geometry_comparison
  @structure_pair_geometry_comparison
end

#structure_pair_geometry_evidence_jsonl_pathObject

Returns the value of attribute structure_pair_geometry_evidence_jsonl_path.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def structure_pair_geometry_evidence_jsonl_path
  @structure_pair_geometry_evidence_jsonl_path
end

#structure_pair_geometry_evidence_tsv_pathObject

Returns the value of attribute structure_pair_geometry_evidence_tsv_path.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def structure_pair_geometry_evidence_tsv_path
  @structure_pair_geometry_evidence_tsv_path
end

#structure_pair_geometry_summary_pathObject

Returns the value of attribute structure_pair_geometry_summary_path.



34
35
36
# File 'lib/rafflesia/datasets/corpu_release_benchmark_data.rb', line 34

def structure_pair_geometry_summary_path
  @structure_pair_geometry_summary_path
end