org.apache.hadoop.examples
Class BaileyBorweinPlouffe.BbpMapper
java.lang.Object
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>
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaileyBorweinPlouffe.BbpMapper
public BaileyBorweinPlouffe.BbpMapper()
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