public static class Import.KeyValueSortImporter extends TableMapper<Import.KeyValueWritableComparable,KeyValue>
Constructor and Description |
---|
Import.KeyValueSortImporter() |
Modifier and Type | Method and Description |
---|---|
void |
map(ImmutableBytesWritable row,
Result value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
public void map(ImmutableBytesWritable row, Result value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException
map
in class org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,Import.KeyValueWritableComparable,KeyValue>
row
- The current table row key.value
- The columns.context
- The current context.IOException
- When something is broken with the data.public void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException
setup
in class org.apache.hadoop.mapreduce.Mapper<ImmutableBytesWritable,Result,Import.KeyValueWritableComparable,KeyValue>
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.