public class CreateRandomStoreFile extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
BLOCK_SIZE_OPTION |
private static String |
BLOOM_BLOCK_SIZE_OPTION |
private static String |
BLOOM_FILTER_OPTION |
private static String |
BLOOM_FILTER_PARAM_OPTION |
private int |
cfLen |
private static String |
COMPRESSION_OPTION |
private static int |
EXIT_FAILURE
The exit code this command-line tool returns on failure
|
private static String |
HFILE_VERSION_OPTION |
private static String |
INDEX_BLOCK_SIZE_OPTION |
private static String |
KEY_SIZE_OPTION |
private int |
keyLen |
private int |
keyPrefixLen |
private static int |
LEN_VARIATION
As much as this number of bytes can be added or subtracted from key/value lengths.
|
private static org.slf4j.Logger |
LOG |
private static String |
NUM_KV_OPTION |
private static int |
NUM_VALID_KEY_TYPES
The number of valid key types in a store file
|
private org.apache.hbase.thirdparty.org.apache.commons.cli.Options |
options |
private static String |
OUTPUT_DIR_OPTION |
private int |
rowLen |
private static String |
VALUE_SIZE_OPTION |
private int |
valueLen |
Constructor and Description |
---|
CreateRandomStoreFile() |
Modifier and Type | Method and Description |
---|---|
private void |
configureKeyValue(long numKV,
int keyLen,
int valueLen) |
private byte[] |
generateKey(long i) |
static org.apache.hadoop.hbase.KeyValue.Type |
generateKeyType(Random rand) |
org.apache.hadoop.hbase.KeyValue |
generateKeyValue(long i) |
private String |
generateString() |
private byte[] |
generateValue() |
static void |
main(String[] args) |
private int |
nextInRange(int range) |
boolean |
run(String[] args)
Runs the tools.
|
private static final int LEN_VARIATION
private static final org.slf4j.Logger LOG
private static final String OUTPUT_DIR_OPTION
private static final String NUM_KV_OPTION
private static final String HFILE_VERSION_OPTION
private static final String KEY_SIZE_OPTION
private static final String VALUE_SIZE_OPTION
private static final String COMPRESSION_OPTION
private static final String BLOOM_FILTER_OPTION
private static final String BLOOM_FILTER_PARAM_OPTION
private static final String BLOCK_SIZE_OPTION
private static final String BLOOM_BLOCK_SIZE_OPTION
private static final String INDEX_BLOCK_SIZE_OPTION
private static final int EXIT_FAILURE
private static final int NUM_VALID_KEY_TYPES
private org.apache.hbase.thirdparty.org.apache.commons.cli.Options options
private int keyPrefixLen
private int keyLen
private int rowLen
private int cfLen
private int valueLen
public CreateRandomStoreFile()
public boolean run(String[] args) throws IOException
args
- command-line argumentsIOException
private void configureKeyValue(long numKV, int keyLen, int valueLen)
private int nextInRange(int range)
public org.apache.hadoop.hbase.KeyValue generateKeyValue(long i)
public static org.apache.hadoop.hbase.KeyValue.Type generateKeyType(Random rand)
private String generateString()
private byte[] generateKey(long i)
private byte[] generateValue()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.