public static class StripeCompactionsPerformanceEvaluation.SeqShardedDataGenerator extends org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
args, INCREMENT, kvGenerator, MUTATE_INFO| Constructor and Description |
|---|
SeqShardedDataGenerator(int minValueSize,
int maxValueSize,
int numPartitions) |
| Modifier and Type | Method and Description |
|---|---|
byte[][] |
generateColumnsForCf(byte[] rowKey,
byte[] cf)
Generates an applicable set of columns to be used for a particular key and family.
|
byte[] |
generateValue(byte[] rowKey,
byte[] cf,
byte[] column)
Generates a value to be used for a particular row/cf/column.
|
byte[][] |
getColumnFamilies()
Gets column families for the load test table.
|
byte[] |
getDeterministicUniqueKey(long keyBase)
Generates a deterministic, unique hashed row key from a number.
|
boolean |
verify(byte[] rowKey,
byte[] cf,
byte[] column,
byte[] value)
Checks that value for a rowKey/cf/column is valid if generated via
LoadTestDataGenerator.generateValue(byte[], byte[], byte[]) |
boolean |
verify(byte[] rowKey,
byte[] cf,
Set<byte[]> columnSet)
Checks that columns for a rowKey and cf are valid if generated via
LoadTestDataGenerator.generateColumnsForCf(byte[], byte[]) |
beforeGet, beforeMutate, generateData, getArgs, initializepublic SeqShardedDataGenerator(int minValueSize, int maxValueSize, int numPartitions)
public byte[] getDeterministicUniqueKey(long keyBase)
org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorgetDeterministicUniqueKey in class org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorkeyBase - Base number for a key, such as a loop counter.public byte[][] getColumnFamilies()
org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorgetColumnFamilies in class org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorpublic byte[][] generateColumnsForCf(byte[] rowKey, byte[] cf)
org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorgenerateColumnsForCf in class org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorrowKey - The row key to generate for.cf - The column family name to generate for.public byte[] generateValue(byte[] rowKey, byte[] cf, byte[] column)
org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorgenerateValue in class org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorrowKey - The row key to generate for.cf - The column family name to generate for.column - The column name to generate for.public boolean verify(byte[] rowKey, byte[] cf, byte[] column, byte[] value)
org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorLoadTestDataGenerator.generateValue(byte[], byte[], byte[])verify in class org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorrowKey - The row key to verify for.cf - The column family name to verify for.column - The column name to verify for.value - The value (for example, encountered by read).public boolean verify(byte[] rowKey, byte[] cf, Set<byte[]> columnSet)
org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorLoadTestDataGenerator.generateColumnsForCf(byte[], byte[])verify in class org.apache.hadoop.hbase.util.test.LoadTestDataGeneratorrowKey - The row key to verify for.cf - The column family name to verify for.columnSet - The column set (for example, encountered by read).Copyright © 2007–2019 Cloudera. All rights reserved.