Class: BSONKeyValueInput

Inherits:
BSONInput show all
Defined in:
lib/mongo-hadoop/input.rb

Instance Method Summary collapse

Methods inherited from BSONInput

#initialize, #read

Constructor Details

This class inherits a constructor from BSONInput

Instance Method Details

#eachObject



24
25
26
27
28
# File 'lib/mongo-hadoop/input.rb', line 24

def each
  while(doc = read)
    yield doc['_id'], doc
  end
end