Class: Rubadoop::MapReduce::Identity::Mapper

Inherits:
Mapper
  • Object
show all
Defined in:
lib/rubadoop/map_reduce/identity.rb

Instance Method Summary collapse

Methods included from Mappable

#mapper, #mapper_batched

Constructor Details

#initialize(config = {}) ⇒ Mapper

Returns a new instance of Mapper.



6
7
8
9
10
11
12
# File 'lib/rubadoop/map_reduce/identity.rb', line 6

def initialize(config = {})
  super(config)

  mapper do |line|
    MapReduce.out.entry(line)
  end
end