@InterfaceAudience.Public @InterfaceStability.Stable public class ValueAggregatorCombiner<K1 extends org.apache.hadoop.io.WritableComparable<?>,V1 extends org.apache.hadoop.io.Writable> extends Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
Reducer.Context| Constructor and Description |
|---|
ValueAggregatorCombiner() |
| Modifier and Type | Method and Description |
|---|---|
void |
reduce(org.apache.hadoop.io.Text key,
Iterable<org.apache.hadoop.io.Text> values,
Reducer.Context context)
Combines values for a given key.
|
public void reduce(org.apache.hadoop.io.Text key,
Iterable<org.apache.hadoop.io.Text> values,
Reducer.Context context)
throws IOException,
InterruptedException
reduce in class Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>key - the key is expected to be a Text object, whose prefix indicates
the type of aggregation to aggregate the values.values - the values to combinecontext - to collect combined valuesIOExceptionInterruptedExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.