org.apache.hadoop.mapreduce.lib.map
Class TokenCounterMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<java.lang.Object,Text,Text,IntWritable>
org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper
public class TokenCounterMapper
- extends Mapper<java.lang.Object,Text,Text,IntWritable>
Tokenize the input values and emit each word with a count of 1.
Method Summary |
void |
map(java.lang.Object key,
Text value,
Mapper.Context context)
Called once for each key/value pair in the input split. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenCounterMapper
public TokenCounterMapper()
map
public void map(java.lang.Object key,
Text value,
Mapper.Context context)
throws java.io.IOException,
java.lang.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<java.lang.Object,Text,Text,IntWritable>
- Throws:
java.io.IOException
java.lang.InterruptedException
Copyright © 2009 The Apache Software Foundation