public static class MultiTableInputFormatTestBase.ScanMapper extends TableMapper<ImmutableBytesWritable,ImmutableBytesWritable>
| Constructor and Description |
|---|
ScanMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
makeAssertions(ImmutableBytesWritable key,
Result value) |
void |
map(ImmutableBytesWritable key,
Result value,
Context context)
Pass the key and value to reduce.
|
public void map(ImmutableBytesWritable key,
Result value,
Context context)
throws java.io.IOException,
java.lang.InterruptedException
key - The key, here "aaa", "aab" etc.value - The value is the same as the key.context - The task context.java.io.IOException - When reading the rows fails.java.lang.InterruptedExceptionpublic void makeAssertions(ImmutableBytesWritable key,
Result value)
throws java.io.IOException
java.io.IOException