|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.test.RedundantKVGenerator
public class RedundantKVGenerator
Generate list of key values which are very useful to test data block encoding and compression.
Constructor Summary | |
---|---|
RedundantKVGenerator()
Default constructor, assumes all parameters from class constants. |
|
RedundantKVGenerator(Random randomizer,
int numberOfRowPrefixes,
int averagePrefixLength,
int prefixLengthVariance,
int averageSuffixLength,
int suffixLengthVariance,
int numberOfRows,
float chanceForSameQualifier,
float chanceForSimiliarQualifier,
int averageQualifierLength,
int qualifierLengthVariance,
int columnFamilyLength,
int valueLength,
float chanceForZeroValue,
int baseTimestampDivide,
int timestampDiffSize)
Various configuration options for generating key values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RedundantKVGenerator()
public RedundantKVGenerator(Random randomizer, int numberOfRowPrefixes, int averagePrefixLength, int prefixLengthVariance, int averageSuffixLength, int suffixLengthVariance, int numberOfRows, float chanceForSameQualifier, float chanceForSimiliarQualifier, int averageQualifierLength, int qualifierLengthVariance, int columnFamilyLength, int valueLength, float chanceForZeroValue, int baseTimestampDivide, int timestampDiffSize)
randomizer
- pick things by randomMethod Detail |
---|
public List<KeyValue> generateTestKeyValues(int howMany)
howMany
- How many Key values should be generated.
public static ByteBuffer convertKvToByteBuffer(List<KeyValue> keyValues, boolean includesMemstoreTS)
keyValues
- list of KeyValues to be converted.
public RedundantKVGenerator setCommonPrefix(byte[] prefix)
public RedundantKVGenerator setRandomizer(Random randomizer)
public RedundantKVGenerator setNumberOfRowPrefixes(int numberOfRowPrefixes)
public RedundantKVGenerator setAveragePrefixLength(int averagePrefixLength)
public RedundantKVGenerator setPrefixLengthVariance(int prefixLengthVariance)
public RedundantKVGenerator setAverageSuffixLength(int averageSuffixLength)
public RedundantKVGenerator setSuffixLengthVariance(int suffixLengthVariance)
public RedundantKVGenerator setNumberOfRows(int numberOfRows)
public RedundantKVGenerator setChanceForSameQualifier(float chanceForSameQualifier)
public RedundantKVGenerator setChanceForSimilarQualifier(float chanceForSimiliarQualifier)
public RedundantKVGenerator setAverageQualifierLength(int averageQualifierLength)
public RedundantKVGenerator setQualifierLengthVariance(int qualifierLengthVariance)
public RedundantKVGenerator setColumnFamilyLength(int columnFamilyLength)
public RedundantKVGenerator setFamily(byte[] family)
public RedundantKVGenerator setValueLength(int valueLength)
public RedundantKVGenerator setChanceForZeroValue(float chanceForZeroValue)
public RedundantKVGenerator setBaseTimestampDivide(int baseTimestampDivide)
public RedundantKVGenerator setTimestampDiffSize(int timestampDiffSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |