org.apache.hadoop.examples.pi
Class DistSum.ReduceSide.PartitionMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,SummationWritable,org.apache.hadoop.io.IntWritable,SummationWritable>
org.apache.hadoop.examples.pi.DistSum.ReduceSide.PartitionMapper
- Enclosing class:
- DistSum.ReduceSide
public static class DistSum.ReduceSide.PartitionMapper
- extends Mapper<org.apache.hadoop.io.NullWritable,SummationWritable,org.apache.hadoop.io.IntWritable,SummationWritable>
A Mapper which partitions a summation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistSum.ReduceSide.PartitionMapper
public DistSum.ReduceSide.PartitionMapper()
map
protected void map(org.apache.hadoop.io.NullWritable nw,
SummationWritable sigma,
Mapper.Context context)
throws IOException,
InterruptedException
- Partitions sigma into parts
- Overrides:
map
in class Mapper<org.apache.hadoop.io.NullWritable,SummationWritable,org.apache.hadoop.io.IntWritable,SummationWritable>
- Throws:
IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation