public class QuasiMonteCarlo extends Configured implements Tool
Modifier and Type | Class and Description |
---|---|
static class |
QuasiMonteCarlo.QmcMapper
Mapper class for Pi estimation.
|
static class |
QuasiMonteCarlo.QmcReducer
Reducer class for Pi estimation.
|
Constructor and Description |
---|
QuasiMonteCarlo() |
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
estimatePi(int numMaps,
long numPoints,
Path tmpDir,
Configuration conf)
Run a map/reduce job for estimating Pi.
|
static void |
main(String[] argv)
main method for running it as a stand alone command.
|
int |
run(String[] args)
Parse arguments and then runs a map/reduce job.
|
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public static BigDecimal estimatePi(int numMaps, long numPoints, Path tmpDir, Configuration conf) throws IOException, ClassNotFoundException, InterruptedException
IOException
ClassNotFoundException
InterruptedException
public int run(String[] args) throws Exception
Copyright © 2013 Apache Software Foundation. All rights reserved.