public class PiEstimator extends Configured implements Tool
限定符和类型 | 类和说明 |
---|---|
static class |
PiEstimator.PiMapper
Mapper class for Pi estimation.
|
static class |
PiEstimator.PiReducer
Reducer class for Pi estimation.
|
构造器和说明 |
---|
PiEstimator() |
限定符和类型 | 方法和说明 |
---|---|
static BigDecimal |
estimate(int numMaps,
long numPoints,
JobConf jobConf)
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 estimate(int numMaps, long numPoints, JobConf jobConf) throws IOException
IOException
public int run(String[] args) throws Exception
Copyright © 2009 The Apache Software Foundation