@InterfaceAudience.Private public class LoadTestKVGenerator extends Object
Constructor and Description |
---|
LoadTestKVGenerator(int minValueSize,
int maxValueSize) |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateRandomSizeValue(byte[]... seedStrings)
Generates a value for the given key index and column qualifier.
|
static String |
md5PrefixedKey(long key)
Converts the given key to string, and prefixes it with the MD5 hash of
the index's string representation.
|
static boolean |
verify(byte[] value,
byte[]... seedStrings)
Verifies that the given byte array is the same as what would be generated
for the given seed strings (row/cf/column/...).
|
public LoadTestKVGenerator(int minValueSize, int maxValueSize)
public static boolean verify(byte[] value, byte[]... seedStrings)
public static String md5PrefixedKey(long key)
public byte[] generateRandomSizeValue(byte[]... seedStrings)
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.