public class TestStripeCompactor extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
KEY_B |
private static byte[] |
KEY_C |
private static byte[] |
KEY_D |
private static org.apache.hadoop.hbase.KeyValue |
KV_A |
private static org.apache.hadoop.hbase.KeyValue |
KV_B |
private static org.apache.hadoop.hbase.KeyValue |
KV_C |
private static org.apache.hadoop.hbase.KeyValue |
KV_D |
private static byte[] |
NAME_OF_THINGS |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
boolean |
usePrivateReaders |
Constructor and Description |
---|
TestStripeCompactor() |
Modifier and Type | Method and Description |
---|---|
private static <T> T[] |
a(T... a) |
private org.apache.hadoop.hbase.regionserver.compactions.StripeCompactor |
createCompactor(TestCompactor.StoreFileWritersCapture writers,
org.apache.hadoop.hbase.KeyValue[] input) |
static Iterable<Object[]> |
data() |
private static org.apache.hadoop.hbase.KeyValue[] |
e() |
private static org.apache.hadoop.hbase.KeyValue |
kvAfter(byte[] key) |
void |
testBoundaryCompactionEmptyFiles() |
void |
testBoundaryCompactions() |
void |
testSizeCompactions() |
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) |
public static final HBaseClassTestRule CLASS_RULE
private static final byte[] NAME_OF_THINGS
private static final org.apache.hadoop.hbase.TableName TABLE_NAME
private static final byte[] KEY_B
private static final byte[] KEY_C
private static final byte[] KEY_D
private static final org.apache.hadoop.hbase.KeyValue KV_A
private static final org.apache.hadoop.hbase.KeyValue KV_B
private static final org.apache.hadoop.hbase.KeyValue KV_C
private static final org.apache.hadoop.hbase.KeyValue KV_D
public boolean usePrivateReaders
public TestStripeCompactor()
private static org.apache.hadoop.hbase.KeyValue kvAfter(byte[] key)
private static <T> T[] a(T... a)
private static org.apache.hadoop.hbase.KeyValue[] e()
public void testBoundaryCompactions() throws Exception
Exception
public void testBoundaryCompactionEmptyFiles() throws Exception
Exception
private void verifyBoundaryCompaction(org.apache.hadoop.hbase.KeyValue[] input, byte[][] boundaries, org.apache.hadoop.hbase.KeyValue[][] output) throws Exception
Exception
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
Exception
public void testSizeCompactions() throws Exception
Exception
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
Exception
private org.apache.hadoop.hbase.regionserver.compactions.StripeCompactor createCompactor(TestCompactor.StoreFileWritersCapture writers, org.apache.hadoop.hbase.KeyValue[] input) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.