Method: Bio::FlatFileIndex::DataBank#search_primary
- Defined in:
- lib/bio/io/flatfile/index.rb
#search_primary(*arg) ⇒ Object
1331 1332 1333 1334 1335 1336 1337 1338 1339 |
# File 'lib/bio/io/flatfile/index.rb', line 1331 def search_primary(*arg) r = Results.new arg.each do |x| a = primary.search(x) # a is empty or a.size==1 because primary key must be unique r.store(x, get_flatfile_data(*a[0])) unless a.empty? end r end |