@InterfaceAudience.Public @InterfaceStability.Stable public class FieldSelectionMapper<K,V> extends Mapper<K,V,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
Mapper.Context
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
FieldSelectionMapper() |
Modifier and Type | Method and Description |
---|---|
void |
map(K key,
V val,
Mapper.Context context)
The identify function.
|
void |
setup(Mapper.Context context)
Called once at the beginning of the task.
|
public void setup(Mapper.Context context) throws IOException, InterruptedException
Mapper
setup
in class Mapper<K,V,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
IOException
InterruptedException
public void map(K key, V val, Mapper.Context context) throws IOException, InterruptedException
map
in class Mapper<K,V,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
IOException
InterruptedException
Copyright © 2016 Apache Software Foundation. All Rights Reserved.