Class TestHFileOutputFormat2.RandomPutGeneratingMapper
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.client.Put>
org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat2.RandomPutGeneratingMapper
- Enclosing class:
- TestHFileOutputFormat2
static class TestHFileOutputFormat2.RandomPutGeneratingMapper
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.client.Put>
Simple mapper that makes Put 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.client.Put>.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.client.Put>.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
-
RandomPutGeneratingMapper
-
-
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.client.Put>.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.client.Put> - 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.client.Put>.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.client.Put> - Throws:
IOException
InterruptedException
-