Class TestStripeCompactor
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.TestStripeCompactor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final byte[]
private static final byte[]
private static final org.apache.hadoop.hbase.KeyValue
private static final org.apache.hadoop.hbase.KeyValue
private static final org.apache.hadoop.hbase.KeyValue
private static final org.apache.hadoop.hbase.KeyValue
private static final byte[]
private static final org.apache.hadoop.hbase.TableName
boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> T[]
a
(T... a) private org.apache.hadoop.hbase.regionserver.compactions.StripeCompactor
createCompactor
(TestCompactor.StoreFileWritersCapture writers, org.apache.hadoop.hbase.KeyValue[] input) data()
private static org.apache.hadoop.hbase.KeyValue[]
e()
private static org.apache.hadoop.hbase.KeyValue
kvAfter
(byte[] key) void
void
void
private void
verifyBoundaryCompaction
(org.apache.hadoop.hbase.KeyValue[] input, byte[][] boundaries, org.apache.hadoop.hbase.KeyValue[][] output) private void
verifyBoundaryCompaction
(org.apache.hadoop.hbase.KeyValue[] input, byte[][] boundaries, org.apache.hadoop.hbase.KeyValue[][] output, byte[] majorFrom, byte[] majorTo, boolean allFiles) private void
verifySizeCompaction
(org.apache.hadoop.hbase.KeyValue[] input, int targetCount, long targetSize, byte[] left, byte[] right, org.apache.hadoop.hbase.KeyValue[][] output)
-
Field Details
-
CLASS_RULE
-
NAME_OF_THINGS
-
TABLE_NAME
-
KEY_B
-
KEY_C
-
KEY_D
-
KV_A
-
KV_B
-
KV_C
-
KV_D
-
usePrivateReaders
-
-
Constructor Details
-
TestStripeCompactor
public TestStripeCompactor()
-
-
Method Details
-
data
-
kvAfter
-
a
-
e
-
testBoundaryCompactions
- Throws:
Exception
-
testBoundaryCompactionEmptyFiles
- Throws:
Exception
-
verifyBoundaryCompaction
private void verifyBoundaryCompaction(org.apache.hadoop.hbase.KeyValue[] input, byte[][] boundaries, org.apache.hadoop.hbase.KeyValue[][] output) throws Exception - Throws:
Exception
-
verifyBoundaryCompaction
private void verifyBoundaryCompaction(org.apache.hadoop.hbase.KeyValue[] input, byte[][] boundaries, org.apache.hadoop.hbase.KeyValue[][] output, byte[] majorFrom, byte[] majorTo, boolean allFiles) throws Exception - Throws:
Exception
-
testSizeCompactions
- Throws:
Exception
-
verifySizeCompaction
private void verifySizeCompaction(org.apache.hadoop.hbase.KeyValue[] input, int targetCount, long targetSize, byte[] left, byte[] right, org.apache.hadoop.hbase.KeyValue[][] output) throws Exception - Throws:
Exception
-
createCompactor
private org.apache.hadoop.hbase.regionserver.compactions.StripeCompactor createCompactor(TestCompactor.StoreFileWritersCapture writers, org.apache.hadoop.hbase.KeyValue[] input) throws Exception - Throws:
Exception
-