org.apache.hadoop.mapred.gridmix
Class SleepJob.SleepMapper

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.mapred.gridmix.GridmixKey,org.apache.hadoop.io.NullWritable>
      extended by org.apache.hadoop.mapred.gridmix.SleepJob.SleepMapper
Enclosing class:
SleepJob

public static class SleepJob.SleepMapper
extends Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.mapred.gridmix.GridmixKey,org.apache.hadoop.io.NullWritable>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context
 
Constructor Summary
SleepJob.SleepMapper()
           
 
Method Summary
 void cleanup(Mapper.Context context)
          Called once at the end of the task.
 void map(org.apache.hadoop.io.LongWritable key, org.apache.hadoop.io.LongWritable value, Mapper.Context context)
          Called once for each key/value pair in the input split.
 
Methods inherited from class org.apache.hadoop.mapreduce.Mapper
run, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SleepJob.SleepMapper

public SleepJob.SleepMapper()
Method Detail

map

public void map(org.apache.hadoop.io.LongWritable key,
                org.apache.hadoop.io.LongWritable value,
                Mapper.Context context)
         throws IOException,
                InterruptedException
Description copied from class: Mapper
Called once for each key/value pair in the input split. Most applications should override this, but the default is the identity function.

Overrides:
map in class Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.mapred.gridmix.GridmixKey,org.apache.hadoop.io.NullWritable>
Throws:
IOException
InterruptedException

cleanup

public void cleanup(Mapper.Context context)
             throws IOException,
                    InterruptedException
Description copied from class: Mapper
Called once at the end of the task.

Overrides:
cleanup in class Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.mapred.gridmix.GridmixKey,org.apache.hadoop.io.NullWritable>
Throws:
IOException
InterruptedException


Copyright © 2009 The Apache Software Foundation