org.apache.hadoop.examples.pi
Class DistSum.ReduceSide.PartitionMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,SummationWritable,org.apache.hadoop.io.IntWritable,SummationWritable>
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context
 
Constructor Summary
DistSum.ReduceSide.PartitionMapper()
           
 
Method Summary
protected  void map(org.apache.hadoop.io.NullWritable nw, SummationWritable sigma, 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
 

Constructor Detail

DistSum.ReduceSide.PartitionMapper

public DistSum.ReduceSide.PartitionMapper()
Method Detail

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