@InterfaceAudience.Public @InterfaceStability.Stable public class FieldSelectionReducer<K,V> extends Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
Reducer.Context| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
FieldSelectionReducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
reduce(org.apache.hadoop.io.Text key,
Iterable<org.apache.hadoop.io.Text> values,
Reducer.Context context)
This method is called once for each key.
|
void |
setup(Reducer.Context context)
Called once at the start of the task.
|
public void setup(Reducer.Context context) throws IOException, InterruptedException
Reducersetup in class Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionpublic void reduce(org.apache.hadoop.io.Text key,
Iterable<org.apache.hadoop.io.Text> values,
Reducer.Context context)
throws IOException,
InterruptedException
Reducerreduce in class Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.