@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.slf4j.Logger |
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 © 2008–2022 Apache Software Foundation. All rights reserved.