Mapper.Context
Modifier and Type | Field and Description |
---|---|
static String |
GROUP |
static String |
PATTERN |
Constructor and Description |
---|
RegexMapper() |
Modifier and Type | Method and Description |
---|---|
void |
map(K key,
org.apache.hadoop.io.Text value,
Mapper.Context context)
Called once for each key/value pair in the input split.
|
void |
setup(Mapper.Context context)
Called once at the beginning of the task.
|
public void setup(Mapper.Context context)
Mapper
public void map(K key, org.apache.hadoop.io.Text value, Mapper.Context context) throws IOException, InterruptedException
Mapper
map
in class Mapper<K,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.LongWritable>
IOException
InterruptedException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.