Class TokenCounterMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<Object,Text,Text,IntWritable>
org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper
Tokenize the input values and emit each word with a count of 1.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TokenCounterMapper
public TokenCounterMapper()
-
-
Method Details
-
map
public void map(Object key, Text value, Mapper<Object, Text, throws IOException, InterruptedExceptionText, IntWritable>.org.apache.hadoop.mapreduce.Mapper.Context context) Description copied from class:MapperCalled once for each key/value pair in the input split. Most applications should override this, but the default is the identity function.- Overrides:
mapin classMapper<Object,Text, Text, IntWritable> - Throws:
IOExceptionInterruptedException
-