@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.apache.commons.logging.Log |
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
Reducer
setup
in class Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
IOException
InterruptedException
public void reduce(org.apache.hadoop.io.Text key, Iterable<org.apache.hadoop.io.Text> values, Reducer.Context context) throws IOException, InterruptedException
Reducer
reduce
in class Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
IOException
InterruptedException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.