org.apache.hadoop.examples
Class NNBench.Map
java.lang.Object
org.apache.hadoop.mapred.MapReduceBase
org.apache.hadoop.examples.NNBench.Map
- All Implemented Interfaces:
- Closeable, JobConfigurable, Mapper
- Enclosing class:
- NNBench
public static class NNBench.Map
- extends MapReduceBase
- implements Mapper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NNBench.Map
public NNBench.Map()
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
for both writing and reading a given number of bytes.
- Specified by:
map
in interface Mapper
- Parameters:
key
- the keyvalue
- the valuesoutput
- 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