org.apache.hadoop.mapred.lib.aggregate
Class ValueAggregatorMapper
java.lang.Object
org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase
org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper
- All Implemented Interfaces:
- Closeable, JobConfigurable, Mapper, Reducer
public class ValueAggregatorMapper
- extends ValueAggregatorJobBase
This class implements the generic mapper of Abacus.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueAggregatorMapper
public ValueAggregatorMapper()
map
public void map(WritableComparable key,
Writable value,
OutputCollector output,
Reporter reporter)
throws IOException
- the map function. It iterates through the value aggregator descriptor
list to generate aggregation id/value pairs and emit them.
- Parameters:
key
- the keyvalue
- the valuesoutput
- collects mapped keys and values
- Throws:
IOException
reduce
public void reduce(WritableComparable arg0,
Iterator arg1,
OutputCollector arg2,
Reporter arg3)
throws IOException
- Do nothing. Should not be called.
- Parameters:
arg0
- the keyarg1
- the values to combinearg2
- to collect combined values
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation