public static class WordMedian.WordMedianMapper extends Mapper<Object,Text,IntWritable,IntWritable>
Mapper.Context| Constructor and Description |
|---|
WordMedian.WordMedianMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
map(Object key,
Text value,
Mapper.Context context)
Emits a key-value pair for counting the word.
|
public void map(Object key, Text value, Mapper.Context context) throws IOException, InterruptedException
map in class Mapper<Object,Text,IntWritable,IntWritable>value - This will be a line of text coming in from our input file.IOExceptionInterruptedExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.