Class TestChangingEncoding
java.lang.Object
org.apache.hadoop.hbase.io.encoding.TestChangingEncoding
Tests changing data block encoding settings of a column family.
-
Field Summary
Modifier and TypeFieldDescription(package private) static final String
(package private) static final byte[]
static final HBaseClassTestRule
private static final org.apache.hadoop.conf.Configuration
private static final List<org.apache.hadoop.hbase.io.encoding.DataBlockEncoding>
private org.apache.hadoop.hbase.HColumnDescriptor
private static final org.slf4j.Logger
private static final int
private static final int
private int
A zero-based index of the current batch of test data being writtenprivate org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtility
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
private static final List<org.apache.hadoop.hbase.io.encoding.DataBlockEncoding>
private static byte[]
getQualifier
(int j) private static byte[]
getRowKey
(int batchId, int i) private static byte[]
getValue
(int batchId, int i, int j) private void
prepareTest
(String testId) private void
setEncodingConf
(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding, boolean onlineChange) static void
static void
void
void
void
private void
(package private) static void
verifyTestDataBatch
(org.apache.hadoop.hbase.TableName tableName, int batchId) private void
(package private) static void
writeTestDataBatch
(org.apache.hadoop.hbase.TableName tableName, int batchId)
-
Field Details
-
CLASS_RULE
-
LOG
-
CF
- See Also:
-
CF_BYTES
-
NUM_ROWS_PER_BATCH
- See Also:
-
NUM_COLS_PER_ROW
- See Also:
-
TEST_UTIL
-
conf
-
TIMEOUT_MS
- See Also:
-
hcd
-
tableName
-
ENCODINGS_TO_ITERATE
private static final List<org.apache.hadoop.hbase.io.encoding.DataBlockEncoding> ENCODINGS_TO_ITERATE -
numBatchesWritten
A zero-based index of the current batch of test data being written
-
-
Constructor Details
-
TestChangingEncoding
public TestChangingEncoding()
-
-
Method Details
-
createEncodingsToIterate
private static final List<org.apache.hadoop.hbase.io.encoding.DataBlockEncoding> createEncodingsToIterate() -
prepareTest
- Throws:
IOException
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
getRowKey
-
getQualifier
-
getValue
-
writeTestDataBatch
static void writeTestDataBatch(org.apache.hadoop.hbase.TableName tableName, int batchId) throws Exception - Throws:
Exception
-
verifyTestDataBatch
static void verifyTestDataBatch(org.apache.hadoop.hbase.TableName tableName, int batchId) throws Exception - Throws:
Exception
-
writeSomeNewData
- Throws:
Exception
-
verifyAllData
- Throws:
Exception
-
setEncodingConf
private void setEncodingConf(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding encoding, boolean onlineChange) throws Exception - Throws:
Exception
-
testChangingEncoding
- Throws:
Exception
-
testChangingEncodingWithCompaction
- Throws:
Exception
-
compactAndWait
- Throws:
IOException
InterruptedException
-
testCrazyRandomChanges
- Throws:
Exception
-