Class ValueAggregatorCombiner<K1 extends WritableComparable<?>,V1 extends Writable>
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<Text,Text,Text,Text>
org.apache.hadoop.mapreduce.lib.aggregate.ValueAggregatorCombiner<K1,V1>
@Public
@Stable
public class ValueAggregatorCombiner<K1 extends WritableComparable<?>,V1 extends Writable>
extends Reducer<Text,Text,Text,Text>
This class implements the generic combiner of Aggregate.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ValueAggregatorCombiner
public ValueAggregatorCombiner()
-
-
Method Details
-
reduce
public void reduce(Text key, Iterable<Text> values, Reducer<Text, Text, throws IOException, InterruptedExceptionText, Text>.org.apache.hadoop.mapreduce.Reducer.Context context) Combines values for a given key.- Overrides:
reducein classReducer<Text,Text, Text, Text> - Parameters:
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 values- Throws:
IOExceptionInterruptedException
-