Class: Bio::GFFbrowser::Digest::LruCacheHelpers::SeekLinkedRecs

Inherits:
Hash
  • Object
show all
Includes:
Helpers::Logger
Defined in:
lib/bio/db/gff/digest/gfflrucache.rb

Overview

List of ids

Instance Method Summary collapse

Methods included from Helpers::Logger

#debug, #error, #info, #log_sys_info, #warn

Instance Method Details

#add(id, rec) ⇒ Object



86
87
88
89
90
91
# File 'lib/bio/db/gff/digest/gfflrucache.rb', line 86

def add id, rec
  info "Adding #{rec.feature_type} (lru)",id
  raise "ID should not be empty" if id == nil or id == ""
  self[id] = [] if self[id] == nil
  self[id] << rec.io_seek
end

#validate_nonoverlappingObject

validation is switched off for LruCache



96
97
# File 'lib/bio/db/gff/digest/gfflrucache.rb', line 96

def validate_nonoverlapping
end

#validate_seqnameObject

validation is switched off for LruCache



93
94
# File 'lib/bio/db/gff/digest/gfflrucache.rb', line 93

def validate_seqname
end

#validate_shared_parentObject

validation is switched off for LruCache



99
100
# File 'lib/bio/db/gff/digest/gfflrucache.rb', line 99

def validate_shared_parent
end