Class TestHFileOutputFormat2.RandomKVGeneratingMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.Cell>
org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat2.RandomKVGeneratingMapper
- Enclosing class:
- TestHFileOutputFormat2
static class TestHFileOutputFormat2.RandomKVGeneratingMapper
extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.Cell>
Simple mapper that makes KeyValue output.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
map
(org.apache.hadoop.io.NullWritable n1, org.apache.hadoop.io.NullWritable n2, org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable, org.apache.hadoop.io.NullWritable, org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.Cell>.org.apache.hadoop.mapreduce.Mapper.Context context) protected void
setup
(org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable, org.apache.hadoop.io.NullWritable, org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.Cell>.org.apache.hadoop.mapreduce.Mapper.Context context) Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, run
-
Field Details
-
keyLength
-
KEYLEN_DEFAULT
- See Also:
-
KEYLEN_CONF
- See Also:
-
valLength
-
VALLEN_DEFAULT
- See Also:
-
VALLEN_CONF
- See Also:
-
QUALIFIER
-
multiTableMapper
-
tables
-
-
Constructor Details
-
RandomKVGeneratingMapper
-
-
Method Details
-
setup
protected void setup(org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable, org.apache.hadoop.io.NullWritable, throws IOException, InterruptedExceptionorg.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.Cell>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
setup
in classorg.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,
org.apache.hadoop.io.NullWritable, org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.Cell> - Throws:
IOException
InterruptedException
-
map
protected void map(org.apache.hadoop.io.NullWritable n1, org.apache.hadoop.io.NullWritable n2, org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable, org.apache.hadoop.io.NullWritable, throws IOException, InterruptedExceptionorg.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.Cell>.org.apache.hadoop.mapreduce.Mapper.Context context) - Overrides:
map
in classorg.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,
org.apache.hadoop.io.NullWritable, org.apache.hadoop.hbase.io.ImmutableBytesWritable, org.apache.hadoop.hbase.Cell> - Throws:
IOException
InterruptedException
-