public static class SleepJob.SleepMapper extends Mapper<LongWritable,LongWritable,org.apache.hadoop.mapred.gridmix.GridmixKey,NullWritable>
Mapper.Context| Constructor and Description |
|---|
SleepJob.SleepMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(Mapper.Context context)
Called once at the end of the task.
|
void |
map(LongWritable key,
LongWritable value,
Mapper.Context context)
Called once for each key/value pair in the input split.
|
public void map(LongWritable key, LongWritable value, Mapper.Context context) throws IOException, InterruptedException
Mappermap in class Mapper<LongWritable,LongWritable,org.apache.hadoop.mapred.gridmix.GridmixKey,NullWritable>IOExceptionInterruptedExceptionpublic void cleanup(Mapper.Context context) throws IOException, InterruptedException
Mappercleanup in class Mapper<LongWritable,LongWritable,org.apache.hadoop.mapred.gridmix.GridmixKey,NullWritable>IOExceptionInterruptedExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.