Constructor and Description |
---|
ValueAggregatorCombiner() |
Modifier and Type | Method and Description |
---|---|
void |
reduce(Text key,
Iterable<Text> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
Combines values for a given key.
|
public void reduce(Text key, Iterable<Text> values, org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
reduce
in class Reducer<Text,Text,Text,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 valuesIOException
InterruptedException
Copyright © 2024 Apache Software Foundation. All rights reserved.