org.apache.hadoop.examples
Class PiEstimator
java.lang.Object
  
org.apache.hadoop.conf.Configured
      
org.apache.hadoop.examples.PiEstimator
- All Implemented Interfaces: 
 - Configurable, Tool
 
public class PiEstimator
- extends Configured
- implements Tool
  
A Map-reduce program to estimaate the valu eof Pi using monte-carlo
 method.
 
 
| 
Method Summary | 
static void | 
main(String[] argv)
 
            | 
 int | 
run(String[] args)
 
          Launches all the tasks in order. | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
PiEstimator
public PiEstimator()
run
public int run(String[] args)
        throws Exception
- Launches all the tasks in order.
- Specified by:
 run in interface Tool
 
- Parameters:
 args - command specific arguments.
- Returns:
 - exit code.
 - Throws:
 Exception
 
 
main
public static void main(String[] argv)
                 throws Exception
 
- Throws:
 Exception
 
Copyright © 2008 The Apache Software Foundation