@InterfaceAudience.Public @InterfaceStability.Stable public class ValueAggregatorMapper<K1 extends org.apache.hadoop.io.WritableComparable,V1 extends org.apache.hadoop.io.Writable> extends ValueAggregatorJobBase<K1,V1>
aggregatorDescriptorList| Constructor and Description |
|---|
ValueAggregatorMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
map(K1 key,
V1 value,
OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> output,
Reporter reporter)
the map function.
|
void |
reduce(org.apache.hadoop.io.Text arg0,
Iterator<org.apache.hadoop.io.Text> arg1,
OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> arg2,
Reporter arg3)
Do nothing.
|
close, configure, logSpecpublic void map(K1 key, V1 value, OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> output, Reporter reporter) throws IOException
key - the input key.value - the input value.output - collects mapped keys and values.reporter - facility to report progress.IOExceptionpublic void reduce(org.apache.hadoop.io.Text arg0,
Iterator<org.apache.hadoop.io.Text> arg1,
OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> arg2,
Reporter arg3)
throws IOException
arg0 - the key.arg1 - the list of values to reduce.arg2 - to collect keys and combined values.arg3 - facility to report progress.IOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.