org.apache.hadoop.examples
Class BaileyBorweinPlouffe.BbpMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
      extended by org.apache.hadoop.examples.BaileyBorweinPlouffe.BbpMapper
Enclosing class:
BaileyBorweinPlouffe

public static class BaileyBorweinPlouffe.BbpMapper
extends Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>

Mapper class computing digits of Pi.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context
 
Constructor Summary
BaileyBorweinPlouffe.BbpMapper()
           
 
Method Summary
protected  void map(org.apache.hadoop.io.LongWritable offset, org.apache.hadoop.io.IntWritable length, Mapper.Context context)
          Compute the (offset+1)th to (offset+length)th digits.
 
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

BaileyBorweinPlouffe.BbpMapper

public BaileyBorweinPlouffe.BbpMapper()
Method Detail

map

protected void map(org.apache.hadoop.io.LongWritable offset,
                   org.apache.hadoop.io.IntWritable length,
                   Mapper.Context context)
            throws IOException,
                   InterruptedException
Compute the (offset+1)th to (offset+length)th digits.

Overrides:
map in class Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.BytesWritable>
Throws:
IOException
InterruptedException


Copyright © 2009 The Apache Software Foundation