org.apache.hadoop.examples.pi
Class DistSum.MapSide.SummingMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,SummationWritable,org.apache.hadoop.io.NullWritable,TaskResult>
org.apache.hadoop.examples.pi.DistSum.MapSide.SummingMapper
- Enclosing class:
- DistSum.MapSide
public static class DistSum.MapSide.SummingMapper
- extends Mapper<org.apache.hadoop.io.NullWritable,SummationWritable,org.apache.hadoop.io.NullWritable,TaskResult>
A mapper which computes sums
Method Summary |
protected void |
map(org.apache.hadoop.io.NullWritable nw,
SummationWritable sigma,
Mapper.Context context)
Called once for each key/value pair in the input split. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistSum.MapSide.SummingMapper
public DistSum.MapSide.SummingMapper()
map
protected void map(org.apache.hadoop.io.NullWritable nw,
SummationWritable sigma,
Mapper.Context context)
throws IOException,
InterruptedException
- Description copied from class:
Mapper
- Called once for each key/value pair in the input split. Most applications
should override this, but the default is the identity function.
- Overrides:
map
in class Mapper<org.apache.hadoop.io.NullWritable,SummationWritable,org.apache.hadoop.io.NullWritable,TaskResult>
- Throws:
IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation