org.apache.hadoop.examples
Class BaileyBorweinPlouffe
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.examples.BaileyBorweinPlouffe
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
public class BaileyBorweinPlouffe
- extends org.apache.hadoop.conf.Configured
- implements org.apache.hadoop.util.Tool
A map/reduce program that uses Bailey-Borwein-Plouffe to compute exact
digits of Pi.
This program is able to calculate digit positions
lower than a certain limit, which is roughly 10^8.
If the limit is exceeded,
the corresponding results may be incorrect due to overflow errors.
For computing higher bits of Pi, consider using distbbp.
Reference:
[1] David H. Bailey, Peter B. Borwein and Simon Plouffe. On the Rapid
Computation of Various Polylogarithmic Constants.
Math. Comp., 66:903-913, 1996.
Method Summary |
static void |
main(String[] argv)
The main method for running it as a stand alone command. |
int |
run(String[] args)
Parse arguments and then runs a map/reduce job. |
Methods inherited from class org.apache.hadoop.conf.Configured |
getConf, setConf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
DESCRIPTION
public static final String DESCRIPTION
- See Also:
- Constant Field Values
BaileyBorweinPlouffe
public BaileyBorweinPlouffe()
run
public int run(String[] args)
throws IOException
- Parse arguments and then runs a map/reduce job.
- Specified by:
run
in interface org.apache.hadoop.util.Tool
- Returns:
- a non-zero value if there is an error. Otherwise, return 0.
- Throws:
IOException
main
public static void main(String[] argv)
throws Exception
- The main method for running it as a stand alone command.
- Throws:
Exception
Copyright © 2009 The Apache Software Foundation