public static class WordMean.WordMeanMapper extends org.apache.hadoop.mapreduce.Mapper<Object,Text,Text,LongWritable>
org.apache.hadoop.mapreduce.Mapper.Context| Constructor and Description |
|---|
WordMeanMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
map(Object key,
Text value,
org.apache.hadoop.mapreduce.Mapper.Context context)
Emits 2 key-value pairs for counting the word and its length.
|
cleanup, run, setuppublic void map(Object key, Text value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<Object,Text,Text,LongWritable>value - This will be a line of text coming in from our input file.IOExceptionInterruptedExceptionCopyright © 2018 CERN. All Rights Reserved.