public class RandomKeyValueUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_FAMILY_NAME |
private static int |
MAX_ROW_OR_QUALIFIER_LENGTH |
private static int |
MIN_ROW_OR_QUALIFIER_LENGTH |
Constructor and Description |
---|
RandomKeyValueUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
randomFixedLengthValue(Random rand,
int valueLength) |
static org.apache.hadoop.hbase.KeyValue |
randomKeyValue(Random rand) |
static byte[] |
randomOrderedFixedLengthKey(Random rand,
int i,
int suffixLength) |
static byte[] |
randomOrderedKey(Random rand,
int i)
Generates a random key that is guaranteed to increase as the given index i
increases.
|
static char |
randomReadableChar(Random rand) |
static byte[] |
randomRowOrQualifier(Random rand) |
static byte[] |
randomValue(Random rand) |
public static final String COLUMN_FAMILY_NAME
private static final int MIN_ROW_OR_QUALIFIER_LENGTH
private static final int MAX_ROW_OR_QUALIFIER_LENGTH
public RandomKeyValueUtil()
public static final char randomReadableChar(Random rand)
public static org.apache.hadoop.hbase.KeyValue randomKeyValue(Random rand)
public static byte[] randomRowOrQualifier(Random rand)
public static byte[] randomValue(Random rand)
public static byte[] randomOrderedKey(Random rand, int i)
rand
- random number generator to usei
- public static byte[] randomOrderedFixedLengthKey(Random rand, int i, int suffixLength)
public static byte[] randomFixedLengthValue(Random rand, int valueLength)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.