org.apache.hadoop.examples
Class NNBench.Map

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by org.apache.hadoop.examples.NNBench.Map
All Implemented Interfaces:
Closeable, JobConfigurable, Mapper
Enclosing class:
NNBench

public static class NNBench.Map
extends MapReduceBase
implements Mapper


Constructor Summary
NNBench.Map()
           
 
Method Summary
 void configure(JobConf job)
          Save the values out of the configuaration that we need to write the data.
 void map(WritableComparable key, Writable value, OutputCollector output, Reporter reporter)
          Given a number of files to create, create and open those files.
 
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.io.Closeable
close
 

Constructor Detail

NNBench.Map

public NNBench.Map()
Method Detail

map

public void map(WritableComparable key,
                Writable value,
                OutputCollector output,
                Reporter reporter)
         throws IOException
Given a number of files to create, create and open those files.

Specified by:
map in interface Mapper
Parameters:
key - the key
value - the values
output - collects mapped keys and values
Throws:
IOException

configure

public void configure(JobConf job)
Save the values out of the configuaration that we need to write the data.

Specified by:
configure in interface JobConfigurable
Overrides:
configure in class MapReduceBase
Parameters:
job - the configuration


Copyright © 2006 The Apache Software Foundation