public class MapValuesByWord extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
Constructor and Description |
---|
MapValuesByWord()
construct the map instance (do nothing)
|
Modifier and Type | Method and Description |
---|---|
protected static void |
loadOptions(org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
map(org.apache.hadoop.io.Text key,
org.apache.hadoop.io.BytesWritable value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
public MapValuesByWord()
protected static void loadOptions(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException
IOException
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
setup
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
IOException
InterruptedException
public void map(org.apache.hadoop.io.Text key, org.apache.hadoop.io.BytesWritable value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map
in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
IOException
InterruptedException