static class TestCellBasedHFileOutputFormat2.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>
Modifier and Type | Field and Description |
---|---|
private static String |
KEYLEN_CONF |
private static int |
KEYLEN_DEFAULT |
private int |
keyLength |
private boolean |
multiTableMapper |
private static byte[] |
QUALIFIER |
private org.apache.hadoop.hbase.TableName[] |
tables |
private static String |
VALLEN_CONF |
private static int |
VALLEN_DEFAULT |
private int |
valLength |
Constructor and Description |
---|
RandomPutGeneratingMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
map(org.apache.hadoop.io.NullWritable n1,
org.apache.hadoop.io.NullWritable n2,
org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
private int keyLength
private static final int KEYLEN_DEFAULT
private static final String KEYLEN_CONF
private int valLength
private static final int VALLEN_DEFAULT
private static final String VALLEN_CONF
private static final byte[] QUALIFIER
private boolean multiTableMapper
private org.apache.hadoop.hbase.TableName[] tables
RandomPutGeneratingMapper()
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
setup
in class 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>
IOException
InterruptedException
protected void map(org.apache.hadoop.io.NullWritable n1, org.apache.hadoop.io.NullWritable n2, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map
in class 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>
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.