public static class TestTableInputFormatScanBase.ScanMapper extends TableMapper<ImmutableBytesWritable,ImmutableBytesWritable>
| Constructor and Description |
|---|
ScanMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
map(ImmutableBytesWritable key,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context)
Pass the key and value to reduce.
|
public ScanMapper()
public void map(ImmutableBytesWritable key, Result value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,ImmutableBytesWritable,ImmutableBytesWritable>key - The key, here "aaa", "aab" etc.value - The value is the same as the key.context - The task context.IOException - When reading the rows fails.InterruptedExceptionCopyright © 2007–2019 Cloudera. All rights reserved.