Class: Rafflesia::SequenceSeedIndexManifest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SequenceSeedIndexManifest
- Defined in:
- lib/rafflesia/sequences/sequence_seed_index_manifest.rb
Constant Summary collapse
- HASH_ATTRS =
{ base_index_id: :base_index_id, content_sha256: :content_sha_256, created_at: :created_at, dataset_name: :dataset_name, dataset_version: :dataset_version, directory_object: :directory_object, distinct_kmer_count: :distinct_kmer_count, fasta_object: :fasta_object, index_id: :index_id, kind: :kind, kmer_size: :kmer_size, manifest_version: :manifest_version, name: :name, payload_block_count: :payload_block_count, payload_block_size: :payload_block_size, payload_lite: :payload_lite, posting_block_count: :posting_block_count, posting_block_size: :posting_block_size, residue_count: :residue_count, segment_count: :segment_count, segment_id: :segment_id, segment_level: :segment_level, segment_ordinal: :segment_ordinal, segments: :segments, sequence_count: :sequence_count, sequence_order_sha256: :sequence_order_sha_256, source_object: :source_object, source_object_id: :source_object_id, source_path: :source_path, version: :version, wal_object_ids: :wal_object_ids, wal_record_count: :wal_record_count }.freeze
Instance Attribute Summary collapse
-
#base_index_id ⇒ Object
Returns the value of attribute base_index_id.
-
#content_sha_256 ⇒ Object
Returns the value of attribute content_sha_256.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#directory_object ⇒ Object
Returns the value of attribute directory_object.
-
#distinct_kmer_count ⇒ Object
Returns the value of attribute distinct_kmer_count.
-
#fasta_object ⇒ Object
Returns the value of attribute fasta_object.
-
#index_id ⇒ Object
Returns the value of attribute index_id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
-
#manifest_version ⇒ Object
Returns the value of attribute manifest_version.
-
#name ⇒ Object
Returns the value of attribute name.
-
#payload_block_count ⇒ Object
Returns the value of attribute payload_block_count.
-
#payload_block_size ⇒ Object
Returns the value of attribute payload_block_size.
-
#payload_lite ⇒ Object
Returns the value of attribute payload_lite.
-
#posting_block_count ⇒ Object
Returns the value of attribute posting_block_count.
-
#posting_block_size ⇒ Object
Returns the value of attribute posting_block_size.
-
#residue_count ⇒ Object
Returns the value of attribute residue_count.
-
#segment_count ⇒ Object
Returns the value of attribute segment_count.
-
#segment_id ⇒ Object
Returns the value of attribute segment_id.
-
#segment_level ⇒ Object
Returns the value of attribute segment_level.
-
#segment_ordinal ⇒ Object
Returns the value of attribute segment_ordinal.
-
#segments ⇒ Object
Returns the value of attribute segments.
-
#sequence_count ⇒ Object
Returns the value of attribute sequence_count.
-
#sequence_order_sha_256 ⇒ Object
Returns the value of attribute sequence_order_sha_256.
-
#source_object ⇒ Object
Returns the value of attribute source_object.
-
#source_object_id ⇒ Object
Returns the value of attribute source_object_id.
-
#source_path ⇒ Object
Returns the value of attribute source_path.
-
#version ⇒ Object
Returns the value of attribute version.
-
#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) ⇒ SequenceSeedIndexManifest
constructor
A new instance of SequenceSeedIndexManifest.
Constructor Details
#initialize(json) ⇒ SequenceSeedIndexManifest
Returns a new instance of SequenceSeedIndexManifest.
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 110 111 112 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 77 def initialize(json) super() hash = self.class.normalize(json) @base_index_id = hash[:base_index_id] @content_sha_256 = hash[:content_sha256] @created_at = hash[:created_at] @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @directory_object = hash[:directory_object] ? Rafflesia::ObjectRef.new(hash[:directory_object]) : nil @distinct_kmer_count = hash[:distinct_kmer_count] @fasta_object = hash[:fasta_object] ? Rafflesia::ObjectRef.new(hash[:fasta_object]) : nil @index_id = hash[:index_id] @kind = hash[:kind] @kmer_size = hash[:kmer_size] @manifest_version = hash[:manifest_version] @name = hash[:name] @payload_block_count = hash[:payload_block_count] @payload_block_size = hash[:payload_block_size] @payload_lite = hash[:payload_lite] @posting_block_count = hash[:posting_block_count] @posting_block_size = hash[:posting_block_size] @residue_count = hash[:residue_count] @segment_count = hash[:segment_count] @segment_id = hash[:segment_id] @segment_level = hash[:segment_level] @segment_ordinal = hash[:segment_ordinal] @segments = (hash[:segments] || []).map { |item| item ? Rafflesia::SequenceSeedIndexSegmentRef.new(item) : nil } @sequence_count = hash[:sequence_count] @sequence_order_sha_256 = hash[:sequence_order_sha256] @source_object = hash[:source_object] ? Rafflesia::ObjectRef.new(hash[:source_object]) : nil @source_object_id = hash[:source_object_id] @source_path = hash[:source_path] @version = hash[:version] @wal_object_ids = (hash[:wal_object_ids] || []) @wal_record_count = hash[:wal_record_count] end |
Instance Attribute Details
#base_index_id ⇒ Object
Returns the value of attribute base_index_id.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def base_index_id @base_index_id end |
#content_sha_256 ⇒ Object
Returns the value of attribute content_sha_256.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def content_sha_256 @content_sha_256 end |
#created_at ⇒ Object
Returns the value of attribute created_at.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def created_at @created_at end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def dataset_version @dataset_version end |
#directory_object ⇒ Object
Returns the value of attribute directory_object.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def directory_object @directory_object end |
#distinct_kmer_count ⇒ Object
Returns the value of attribute distinct_kmer_count.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def distinct_kmer_count @distinct_kmer_count end |
#fasta_object ⇒ Object
Returns the value of attribute fasta_object.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def fasta_object @fasta_object end |
#index_id ⇒ Object
Returns the value of attribute index_id.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def index_id @index_id end |
#kind ⇒ Object
Returns the value of attribute kind.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def kind @kind end |
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def kmer_size @kmer_size end |
#manifest_version ⇒ Object
Returns the value of attribute manifest_version.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def manifest_version @manifest_version end |
#name ⇒ Object
Returns the value of attribute name.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def name @name end |
#payload_block_count ⇒ Object
Returns the value of attribute payload_block_count.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def payload_block_count @payload_block_count end |
#payload_block_size ⇒ Object
Returns the value of attribute payload_block_size.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def payload_block_size @payload_block_size end |
#payload_lite ⇒ Object
Returns the value of attribute payload_lite.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def payload_lite @payload_lite end |
#posting_block_count ⇒ Object
Returns the value of attribute posting_block_count.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def posting_block_count @posting_block_count end |
#posting_block_size ⇒ Object
Returns the value of attribute posting_block_size.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def posting_block_size @posting_block_size end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def residue_count @residue_count end |
#segment_count ⇒ Object
Returns the value of attribute segment_count.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def segment_count @segment_count end |
#segment_id ⇒ Object
Returns the value of attribute segment_id.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def segment_id @segment_id end |
#segment_level ⇒ Object
Returns the value of attribute segment_level.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def segment_level @segment_level end |
#segment_ordinal ⇒ Object
Returns the value of attribute segment_ordinal.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def segment_ordinal @segment_ordinal end |
#segments ⇒ Object
Returns the value of attribute segments.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def segments @segments end |
#sequence_count ⇒ Object
Returns the value of attribute sequence_count.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def sequence_count @sequence_count end |
#sequence_order_sha_256 ⇒ Object
Returns the value of attribute sequence_order_sha_256.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def sequence_order_sha_256 @sequence_order_sha_256 end |
#source_object ⇒ Object
Returns the value of attribute source_object.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def source_object @source_object end |
#source_object_id ⇒ Object
Returns the value of attribute source_object_id.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def source_object_id @source_object_id end |
#source_path ⇒ Object
Returns the value of attribute source_path.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def source_path @source_path end |
#version ⇒ Object
Returns the value of attribute version.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def version @version end |
#wal_object_ids ⇒ Object
Returns the value of attribute wal_object_ids.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def wal_object_ids @wal_object_ids end |
#wal_record_count ⇒ Object
Returns the value of attribute wal_record_count.
43 44 45 |
# File 'lib/rafflesia/sequences/sequence_seed_index_manifest.rb', line 43 def wal_record_count @wal_record_count end |