|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.MapReduceBase org.apache.hadoop.examples.PiEstimator.PiMapper
public static class PiEstimator.PiMapper
Mappper class for Pi estimation.
Constructor Summary | |
---|---|
PiEstimator.PiMapper()
|
Method Summary | |
---|---|
void |
close()
Default implementation that does nothing. |
void |
configure(JobConf job)
Mapper configuration. |
void |
map(LongWritable key,
Writable val,
OutputCollector<LongWritable,LongWritable> out,
Reporter reporter)
Map method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PiEstimator.PiMapper()
Method Detail |
---|
public void configure(JobConf job)
configure
in interface JobConfigurable
configure
in class MapReduceBase
job
- the configurationpublic void map(LongWritable key, Writable val, OutputCollector<LongWritable,LongWritable> out, Reporter reporter) throws IOException
map
in interface Mapper<LongWritable,Writable,LongWritable,LongWritable>
key
- val
- not-usedout
- reporter
-
IOException
public void close()
MapReduceBase
close
in interface Closeable
close
in class MapReduceBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |