Class ValueAggregatorCombiner<K1 extends WritableComparable,V1 extends Writable>
java.lang.Object
org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase<K1,V1>
org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner<K1,V1>
- All Implemented Interfaces:
Closeable,AutoCloseable,Closeable,JobConfigurable,Mapper<K1,,V1, Text, Text> Reducer<Text,Text, Text, Text>
@Public
@Stable
public class ValueAggregatorCombiner<K1 extends WritableComparable,V1 extends Writable>
extends ValueAggregatorJobBase<K1,V1>
This class implements the generic combiner of Aggregate.
-
Field Summary
Fields inherited from class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase
aggregatorDescriptorList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Do nothing.voidCombiner does not need to configure.voidDo nothing.voidCombines values for a given key.Methods inherited from class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase
logSpec
-
Constructor Details
-
ValueAggregatorCombiner
public ValueAggregatorCombiner()
-
-
Method Details
-
configure
Combiner does not need to configure.- Specified by:
configurein interfaceJobConfigurable- Overrides:
configurein classValueAggregatorJobBase<K1 extends WritableComparable,V1 extends Writable> - Parameters:
job- the configuration
-
reduce
public void reduce(Text key, Iterator<Text> values, OutputCollector<Text, Text> output, Reporter reporter) throws IOExceptionCombines values for a given key.- 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 combineoutput- to collect combined valuesreporter- facility to report progress.- Throws:
IOException
-
close
Do nothing.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classValueAggregatorJobBase<K1 extends WritableComparable,V1 extends Writable> - Throws:
IOException
-
map
public void map(K1 arg0, V1 arg1, OutputCollector<Text, Text> arg2, Reporter arg3) throws IOExceptionDo nothing. Should not be called.- Parameters:
arg0- the input key.arg1- the input value.arg2- collects mapped keys and values.arg3- facility to report progress.- Throws:
IOException
-