Class: Rafflesia::SequenceSeedIndexBenchmarkData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexBenchmarkData
- Defined in:
- lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ baseline_total_elapsed_ms: :baseline_total_elapsed_ms, benchmark_object: :benchmark_object, built_index: :built_index, directory_bytes_fetched: :directory_bytes_fetched, gate: :gate, index_id: :index_id, kmer_size: :kmer_size, manifest_object_id: :manifest_object_id, materialized_database_bytes: :materialized_database_bytes, max_hits: :max_hits, mean_hit_overlap_fraction: :mean_hit_overlap_fraction, min_identity: :min_identity, object_bytes_fetched: :object_bytes_fetched, object_bytes_per_query: :object_bytes_per_query, object_read_count: :object_read_count, object_reads_per_query: :object_reads_per_query, passed: :passed, payload_bytes_fetched: :payload_bytes_fetched, posting_bytes_fetched: :posting_bytes_fetched, query_count: :query_count, rows: :rows, seed_total_elapsed_ms: :seed_total_elapsed_ms, wal_object_ids: :wal_object_ids, wal_record_count: :wal_record_count }.freeze
Instance Attribute Summary collapse
-
#baseline_total_elapsed_ms ⇒ Object
Returns the value of attribute baseline_total_elapsed_ms.
-
#benchmark_object ⇒ Object
Returns the value of attribute benchmark_object.
-
#built_index ⇒ Object
Returns the value of attribute built_index.
-
#directory_bytes_fetched ⇒ Object
Returns the value of attribute directory_bytes_fetched.
-
#gate ⇒ Object
Returns the value of attribute gate.
-
#index_id ⇒ Object
Returns the value of attribute index_id.
-
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
-
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
-
#materialized_database_bytes ⇒ Object
Returns the value of attribute materialized_database_bytes.
-
#max_hits ⇒ Object
Returns the value of attribute max_hits.
-
#mean_hit_overlap_fraction ⇒ Object
Returns the value of attribute mean_hit_overlap_fraction.
-
#min_identity ⇒ Object
Returns the value of attribute min_identity.
-
#object_bytes_fetched ⇒ Object
Returns the value of attribute object_bytes_fetched.
-
#object_bytes_per_query ⇒ Object
Returns the value of attribute object_bytes_per_query.
-
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
-
#object_reads_per_query ⇒ Object
Returns the value of attribute object_reads_per_query.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#payload_bytes_fetched ⇒ Object
Returns the value of attribute payload_bytes_fetched.
-
#posting_bytes_fetched ⇒ Object
Returns the value of attribute posting_bytes_fetched.
-
#query_count ⇒ Object
Returns the value of attribute query_count.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#seed_total_elapsed_ms ⇒ Object
Returns the value of attribute seed_total_elapsed_ms.
-
#wal_object_ids ⇒ Object
Returns the value of attribute wal_object_ids.
-
#wal_record_count ⇒ Object
Returns the value of attribute wal_record_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ SequenceSeedIndexBenchmarkData
constructor
A new instance of SequenceSeedIndexBenchmarkData.
Constructor Details
#initialize(json) ⇒ SequenceSeedIndexBenchmarkData
Returns a new instance of SequenceSeedIndexBenchmarkData.
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 86 87 88 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 61 def initialize(json) super() hash = self.class.normalize(json) @baseline_total_elapsed_ms = hash[:baseline_total_elapsed_ms] @benchmark_object = hash[:benchmark_object] ? Rafflesia::ObjectRef.new(hash[:benchmark_object]) : nil @built_index = hash[:built_index] ? Rafflesia::SequenceSeedIndexBuildData.new(hash[:built_index]) : nil @directory_bytes_fetched = hash[:directory_bytes_fetched] @gate = hash[:gate] ? Rafflesia::SequenceSeedIndexBenchmarkGate.new(hash[:gate]) : nil @index_id = hash[:index_id] @kmer_size = hash[:kmer_size] @manifest_object_id = hash[:manifest_object_id] @materialized_database_bytes = hash[:materialized_database_bytes] @max_hits = hash[:max_hits] @mean_hit_overlap_fraction = hash[:mean_hit_overlap_fraction] @min_identity = hash[:min_identity] @object_bytes_fetched = hash[:object_bytes_fetched] @object_bytes_per_query = hash[:object_bytes_per_query] @object_read_count = hash[:object_read_count] @object_reads_per_query = hash[:object_reads_per_query] @passed = hash[:passed] @payload_bytes_fetched = hash[:payload_bytes_fetched] @posting_bytes_fetched = hash[:posting_bytes_fetched] @query_count = hash[:query_count] @rows = (hash[:rows] || []).map { |item| item ? Rafflesia::SequenceSeedIndexBenchmarkRow.new(item) : nil } @seed_total_elapsed_ms = hash[:seed_total_elapsed_ms] @wal_object_ids = (hash[:wal_object_ids] || []) @wal_record_count = hash[:wal_record_count] end |
Instance Attribute Details
#baseline_total_elapsed_ms ⇒ Object
Returns the value of attribute baseline_total_elapsed_ms.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def baseline_total_elapsed_ms @baseline_total_elapsed_ms end |
#benchmark_object ⇒ Object
Returns the value of attribute benchmark_object.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def benchmark_object @benchmark_object end |
#built_index ⇒ Object
Returns the value of attribute built_index.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def built_index @built_index end |
#directory_bytes_fetched ⇒ Object
Returns the value of attribute directory_bytes_fetched.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def directory_bytes_fetched @directory_bytes_fetched end |
#gate ⇒ Object
Returns the value of attribute gate.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def gate @gate end |
#index_id ⇒ Object
Returns the value of attribute index_id.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def index_id @index_id end |
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def kmer_size @kmer_size end |
#manifest_object_id ⇒ Object
Returns the value of attribute manifest_object_id.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def manifest_object_id @manifest_object_id end |
#materialized_database_bytes ⇒ Object
Returns the value of attribute materialized_database_bytes.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def materialized_database_bytes @materialized_database_bytes end |
#max_hits ⇒ Object
Returns the value of attribute max_hits.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def max_hits @max_hits end |
#mean_hit_overlap_fraction ⇒ Object
Returns the value of attribute mean_hit_overlap_fraction.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def mean_hit_overlap_fraction @mean_hit_overlap_fraction end |
#min_identity ⇒ Object
Returns the value of attribute min_identity.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def min_identity @min_identity end |
#object_bytes_fetched ⇒ Object
Returns the value of attribute object_bytes_fetched.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def object_bytes_fetched @object_bytes_fetched end |
#object_bytes_per_query ⇒ Object
Returns the value of attribute object_bytes_per_query.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def object_bytes_per_query @object_bytes_per_query end |
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def object_read_count @object_read_count end |
#object_reads_per_query ⇒ Object
Returns the value of attribute object_reads_per_query.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def object_reads_per_query @object_reads_per_query end |
#passed ⇒ Object
Returns the value of attribute passed.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def passed @passed end |
#payload_bytes_fetched ⇒ Object
Returns the value of attribute payload_bytes_fetched.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def payload_bytes_fetched @payload_bytes_fetched end |
#posting_bytes_fetched ⇒ Object
Returns the value of attribute posting_bytes_fetched.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def posting_bytes_fetched @posting_bytes_fetched end |
#query_count ⇒ Object
Returns the value of attribute query_count.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def query_count @query_count end |
#rows ⇒ Object
Returns the value of attribute rows.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def rows @rows end |
#seed_total_elapsed_ms ⇒ Object
Returns the value of attribute seed_total_elapsed_ms.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def seed_total_elapsed_ms @seed_total_elapsed_ms end |
#wal_object_ids ⇒ Object
Returns the value of attribute wal_object_ids.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def wal_object_ids @wal_object_ids end |
#wal_record_count ⇒ Object
Returns the value of attribute wal_record_count.
35 36 37 |
# File 'lib/rafflesia/sequences/sequence_seed_index_benchmark_data.rb', line 35 def wal_record_count @wal_record_count end |