public static class WordStandardDeviation.WordStandardDeviationMapper extends org.apache.hadoop.mapreduce.Mapper<Object,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>
| Constructor and Description |
|---|
WordStandardDeviationMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
map(Object key,
org.apache.hadoop.io.Text value,
org.apache.hadoop.mapreduce.Mapper.Context context)
Emits 3 key-value pairs for counting the word, its length, and the
squares of its length.
|
public void map(Object key, org.apache.hadoop.io.Text value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<Object,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>value - This will be a line of text coming in from our input file.IOExceptionInterruptedExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.