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
Mapper
map
in class Mapper<LongWritable,LongWritable,org.apache.hadoop.mapred.gridmix.GridmixKey,NullWritable>
IOException
InterruptedException
public void cleanup(Mapper.Context context) throws IOException, InterruptedException
Mapper
cleanup
in class Mapper<LongWritable,LongWritable,org.apache.hadoop.mapred.gridmix.GridmixKey,NullWritable>
IOException
InterruptedException
Copyright © 2013 Apache Software Foundation. All rights reserved.