public class TestWALCellCodecWithCompression extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.io.compress.Compression.Algorithm |
compression |
Constructor and Description |
---|
TestWALCellCodecWithCompression(org.apache.hadoop.hbase.io.compress.Compression.Algorithm algo) |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.KeyValue |
createKV(byte[] row,
byte[] value,
int noOfTags) |
private org.apache.hadoop.hbase.ByteBufferKeyValue |
createOffheapKV(byte[] row,
byte[] value,
int noOfTags) |
private void |
doTest(boolean compressTags,
boolean offheapKV) |
(package private) static void |
fillBytes(byte[] buffer,
byte[] fill) |
static List<Object[]> |
params() |
void |
testEncodeDecodeKVsWithTags() |
void |
testEncodeDecodeKVsWithTagsWithTagsCompression() |
void |
testEncodeDecodeOffKVsWithTagsWithTagsCompression() |
void |
testValueCompression() |
void |
testValueCompressionEnabled() |
public static final HBaseClassTestRule CLASS_RULE
private org.apache.hadoop.hbase.io.compress.Compression.Algorithm compression
public TestWALCellCodecWithCompression(org.apache.hadoop.hbase.io.compress.Compression.Algorithm algo)
public void testEncodeDecodeKVsWithTags() throws Exception
Exception
public void testEncodeDecodeKVsWithTagsWithTagsCompression() throws Exception
Exception
public void testEncodeDecodeOffKVsWithTagsWithTagsCompression() throws Exception
Exception
public void testValueCompressionEnabled() throws Exception
Exception
public void testValueCompression() throws Exception
Exception
static void fillBytes(byte[] buffer, byte[] fill)
private void doTest(boolean compressTags, boolean offheapKV) throws Exception
Exception
private org.apache.hadoop.hbase.KeyValue createKV(byte[] row, byte[] value, int noOfTags)
private org.apache.hadoop.hbase.ByteBufferKeyValue createOffheapKV(byte[] row, byte[] value, int noOfTags)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.