Package org.apache.hadoop.hbase
Class IntegrationTestLazyCfLoading.DataGenerator
java.lang.Object
org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
org.apache.hadoop.hbase.IntegrationTestLazyCfLoading.DataGenerator
- Enclosing class:
- IntegrationTestLazyCfLoading
private static class IntegrationTestLazyCfLoading.DataGenerator
extends org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
Custom LoadTestDataGenerator. Uses key generation and verification from LoadTestKVGenerator.
Creates 3 column families; one with an integer column to filter on, the 2nd one with an integer
column that matches the first integer column (for test-specific verification), and byte[] value
that is used for general verification; and the third one with just the value.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
private static final Map<byte[],
byte[][]> static final byte[]
private final AtomicLong
static final byte[]
static final byte[]
static final byte[]
private static final int
private static final int
private final AtomicLong
static final byte[]
Fields inherited from class org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
args, INCREMENT, kvGenerator, MUTATE_INFO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[][]
generateColumnsForCf
(byte[] rowKey, byte[] cf) byte[]
generateValue
(byte[] rowKey, byte[] cf, byte[] column) byte[][]
byte[]
getDeterministicUniqueKey
(long keyBase) long
org.apache.hadoop.hbase.filter.Filter
long
boolean
verify
(byte[] rowKey, byte[] cf, byte[] column, byte[] value) boolean
Methods inherited from class org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
beforeGet, beforeMutate, generateData, getArgs, initialize
-
Field Details
-
MIN_DATA_SIZE
- See Also:
-
MAX_DATA_SIZE
- See Also:
-
ESSENTIAL_CF
-
JOINED_CF1
-
JOINED_CF2
-
FILTER_COLUMN
-
VALUE_COLUMN
-
ACCEPTED_VALUE
- See Also:
-
columnMap
-
expectedNumberOfKeys
-
totalNumberOfKeys
-
-
Constructor Details
-
DataGenerator
public DataGenerator()
-
-
Method Details
-
getExpectedNumberOfKeys
-
getTotalNumberOfKeys
-
getDeterministicUniqueKey
- Specified by:
getDeterministicUniqueKey
in classorg.apache.hadoop.hbase.util.test.LoadTestDataGenerator
-
getColumnFamilies
- Specified by:
getColumnFamilies
in classorg.apache.hadoop.hbase.util.test.LoadTestDataGenerator
-
generateColumnsForCf
- Specified by:
generateColumnsForCf
in classorg.apache.hadoop.hbase.util.test.LoadTestDataGenerator
-
generateValue
- Specified by:
generateValue
in classorg.apache.hadoop.hbase.util.test.LoadTestDataGenerator
-
verify
- Specified by:
verify
in classorg.apache.hadoop.hbase.util.test.LoadTestDataGenerator
-
verify
- Specified by:
verify
in classorg.apache.hadoop.hbase.util.test.LoadTestDataGenerator
-
getScanFilter
-