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 org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,SummationWritable,org.apache.hadoop.io.IntWritable,SummationWritable>
A Mapper which partitions a summation
| Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper |
org.apache.hadoop.mapreduce.Mapper.Context |
|
Method Summary |
protected void |
map(org.apache.hadoop.io.NullWritable nw,
SummationWritable sigma,
org.apache.hadoop.mapreduce.Mapper.Context context)
Partitions sigma into parts |
| Methods inherited from class org.apache.hadoop.mapreduce.Mapper |
cleanup, run, setup |
| 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,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
- Partitions sigma into parts
- Overrides:
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,SummationWritable,org.apache.hadoop.io.IntWritable,SummationWritable>
- Throws:
IOException
InterruptedException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.