Class: Rafflesia::SequenceSeedIndexPlanData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/sequence_seed_index_plan_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  directory_object_id: :directory_object_id,
  directory_read: :directory_read,
  distinct_query_kmer_count: :distinct_query_kmer_count,
  index_id: :index_id,
  indexed_object_bytes: :indexed_object_bytes,
  kmer_size: :kmer_size,
  manifest_object_id: :manifest_object_id,
  matched_query_token_count: :matched_query_token_count,
  materialized_database_bytes: :materialized_database_bytes,
  payload_block_count: :payload_block_count,
  payload_selection: :payload_selection,
  planned_object_bytes: :planned_object_bytes,
  planned_object_read_count: :planned_object_read_count,
  posting_block_count: :posting_block_count,
  posting_reads: :posting_reads,
  query_kmer_count: :query_kmer_count,
  read_budget: :read_budget,
  segment_count: :segment_count,
  segment_id: :segment_id,
  segment_level: :segment_level,
  segment_ordinal: :segment_ordinal,
  segment_plans: :segment_plans,
  selected_posting_block_count: :selected_posting_block_count,
  selected_posting_count: :selected_posting_count,
  selected_segment_count: :selected_segment_count,
  skipped_segment_count: :skipped_segment_count,
  unmatched_query_token_count: :unmatched_query_token_count,
  wal_bytes_fetched: :wal_bytes_fetched,
  wal_object_count: :wal_object_count,
  wal_object_ids: :wal_object_ids,
  wal_record_count: :wal_record_count
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceSeedIndexPlanData

Returns a new instance of SequenceSeedIndexPlanData.



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 75

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @directory_object_id = hash[:directory_object_id]
  @directory_read = hash[:directory_read] ? Rafflesia::SequenceSeedIndexObjectReadPlan.new(hash[:directory_read]) : nil
  @distinct_query_kmer_count = hash[:distinct_query_kmer_count]
  @index_id = hash[:index_id]
  @indexed_object_bytes = hash[:indexed_object_bytes]
  @kmer_size = hash[:kmer_size]
  @manifest_object_id = hash[:manifest_object_id]
  @matched_query_token_count = hash[:matched_query_token_count]
  @materialized_database_bytes = hash[:materialized_database_bytes]
  @payload_block_count = hash[:payload_block_count]
  @payload_selection = hash[:payload_selection]
  @planned_object_bytes = hash[:planned_object_bytes]
  @planned_object_read_count = hash[:planned_object_read_count]
  @posting_block_count = hash[:posting_block_count]
  @posting_reads = (hash[:posting_reads] || []).map { |item| item ? Rafflesia::SequenceSeedIndexObjectReadPlan.new(item) : nil }
  @query_kmer_count = hash[:query_kmer_count]
  @read_budget = hash[:read_budget] ? Rafflesia::SequenceSeedIndexObjectReadBudget.new(hash[:read_budget]) : nil
  @segment_count = hash[:segment_count]
  @segment_id = hash[:segment_id]
  @segment_level = hash[:segment_level]
  @segment_ordinal = hash[:segment_ordinal]
  @segment_plans = (hash[:segment_plans] || []).map { |item| item ? Rafflesia::SequenceSeedIndexSegmentPlanData.new(item) : nil }
  @selected_posting_block_count = hash[:selected_posting_block_count]
  @selected_posting_count = hash[:selected_posting_count]
  @selected_segment_count = hash[:selected_segment_count]
  @skipped_segment_count = hash[:skipped_segment_count]
  @unmatched_query_token_count = hash[:unmatched_query_token_count]
  @wal_bytes_fetched = hash[:wal_bytes_fetched]
  @wal_object_count = hash[:wal_object_count]
  @wal_object_ids = (hash[:wal_object_ids] || [])
  @wal_record_count = hash[:wal_record_count]
end

Instance Attribute Details

#directory_object_idObject

Returns the value of attribute directory_object_id.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def directory_object_id
  @directory_object_id
end

#directory_readObject

Returns the value of attribute directory_read.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def directory_read
  @directory_read
end

#distinct_query_kmer_countObject

Returns the value of attribute distinct_query_kmer_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def distinct_query_kmer_count
  @distinct_query_kmer_count
end

#index_idObject

Returns the value of attribute index_id.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def index_id
  @index_id
end

#indexed_object_bytesObject

Returns the value of attribute indexed_object_bytes.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def indexed_object_bytes
  @indexed_object_bytes
end

#kmer_sizeObject

Returns the value of attribute kmer_size.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def kmer_size
  @kmer_size
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def manifest_object_id
  @manifest_object_id
end

#matched_query_token_countObject

Returns the value of attribute matched_query_token_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def matched_query_token_count
  @matched_query_token_count
end

#materialized_database_bytesObject

Returns the value of attribute materialized_database_bytes.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def materialized_database_bytes
  @materialized_database_bytes
end

#payload_block_countObject

Returns the value of attribute payload_block_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def payload_block_count
  @payload_block_count
end

#payload_selectionObject

Returns the value of attribute payload_selection.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def payload_selection
  @payload_selection
end

#planned_object_bytesObject

Returns the value of attribute planned_object_bytes.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def planned_object_bytes
  @planned_object_bytes
end

#planned_object_read_countObject

Returns the value of attribute planned_object_read_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def planned_object_read_count
  @planned_object_read_count
end

#posting_block_countObject

Returns the value of attribute posting_block_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def posting_block_count
  @posting_block_count
end

#posting_readsObject

Returns the value of attribute posting_reads.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def posting_reads
  @posting_reads
end

#query_kmer_countObject

Returns the value of attribute query_kmer_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def query_kmer_count
  @query_kmer_count
end

#read_budgetObject

Returns the value of attribute read_budget.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def read_budget
  @read_budget
end

#segment_countObject

Returns the value of attribute segment_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def segment_count
  @segment_count
end

#segment_idObject

Returns the value of attribute segment_id.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def segment_id
  @segment_id
end

#segment_levelObject

Returns the value of attribute segment_level.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def segment_level
  @segment_level
end

#segment_ordinalObject

Returns the value of attribute segment_ordinal.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def segment_ordinal
  @segment_ordinal
end

#segment_plansObject

Returns the value of attribute segment_plans.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def segment_plans
  @segment_plans
end

#selected_posting_block_countObject

Returns the value of attribute selected_posting_block_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def selected_posting_block_count
  @selected_posting_block_count
end

#selected_posting_countObject

Returns the value of attribute selected_posting_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def selected_posting_count
  @selected_posting_count
end

#selected_segment_countObject

Returns the value of attribute selected_segment_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def selected_segment_count
  @selected_segment_count
end

#skipped_segment_countObject

Returns the value of attribute skipped_segment_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def skipped_segment_count
  @skipped_segment_count
end

#unmatched_query_token_countObject

Returns the value of attribute unmatched_query_token_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def unmatched_query_token_count
  @unmatched_query_token_count
end

#wal_bytes_fetchedObject

Returns the value of attribute wal_bytes_fetched.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def wal_bytes_fetched
  @wal_bytes_fetched
end

#wal_object_countObject

Returns the value of attribute wal_object_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def wal_object_count
  @wal_object_count
end

#wal_object_idsObject

Returns the value of attribute wal_object_ids.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def wal_object_ids
  @wal_object_ids
end

#wal_record_countObject

Returns the value of attribute wal_record_count.



42
43
44
# File 'lib/rafflesia/sequences/sequence_seed_index_plan_data.rb', line 42

def wal_record_count
  @wal_record_count
end