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, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic static BigDecimal estimate(int numMaps, long numPoints, JobConf jobConf) throws IOException
IOExceptionpublic int run(String[] args) throws Exception
Copyright © 2009 The Apache Software Foundation