org.apache.hadoop.examples
Class MultiFileWordCount.MapClass
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<MultiFileWordCount.WordOffset,Text,Text,IntWritable>
org.apache.hadoop.examples.MultiFileWordCount.MapClass
- Enclosing class:
- MultiFileWordCount
public static class MultiFileWordCount.MapClass
- extends Mapper<MultiFileWordCount.WordOffset,Text,Text,IntWritable>
This Mapper is similar to the one in MultiFileWordCount.MapClass
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiFileWordCount.MapClass
public MultiFileWordCount.MapClass()
map
public void map(MultiFileWordCount.WordOffset key,
Text value,
Mapper.Context context)
throws IOException,
InterruptedException
- Description copied from class:
Mapper
- Called once for each key/value pair in the input split. Most applications
should override this, but the default is the identity function.
- Overrides:
map
in class Mapper<MultiFileWordCount.WordOffset,Text,Text,IntWritable>
- Throws:
IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation