public class TestHFileDataBlockEncoder extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder |
blockEncoder |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.conf.Configuration |
conf |
private RedundantKVGenerator |
generator |
private boolean |
includesMemstoreTS |
Constructor and Description |
---|
TestHFileDataBlockEncoder(org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder blockEncoder,
boolean includesMemstoreTS)
Create test for given data block encoding configuration.
|
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.io.hfile.HFileBlock |
createBlockOnDisk(org.apache.hadoop.conf.Configuration conf,
List<org.apache.hadoop.hbase.KeyValue> kvs,
org.apache.hadoop.hbase.io.hfile.HFileBlock block,
boolean useTags) |
static Collection<Object[]> |
getAllConfigurations()
Returns All possible data block encoding configurations
|
private org.apache.hadoop.hbase.io.hfile.HFileBlock |
getSampleHFileBlock(List<org.apache.hadoop.hbase.KeyValue> kvs,
boolean useTag) |
void |
testEncoding()
Test encoding.
|
private void |
testEncodingInternals(boolean useTag) |
void |
testEncodingWithCache()
Test putting and taking out blocks into cache with different encoding options.
|
private void |
testEncodingWithCacheInternals(boolean useTag) |
void |
testEncodingWithOffheapKeyValue()
Test encoding with offheap keyvalue.
|
void |
testHeaderSizeInCacheWithoutChecksum()
Test for HBASE-5746.
|
private void |
testHeaderSizeInCacheWithoutChecksumInternals(boolean useTags) |
private void |
writeBlock(org.apache.hadoop.conf.Configuration conf,
List<org.apache.hadoop.hbase.Cell> kvs,
org.apache.hadoop.hbase.io.hfile.HFileContext fileContext,
boolean useTags) |
public static final HBaseClassTestRule CLASS_RULE
private final org.apache.hadoop.conf.Configuration conf
private final RedundantKVGenerator generator
private org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder blockEncoder
private boolean includesMemstoreTS
public TestHFileDataBlockEncoder(org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder blockEncoder, boolean includesMemstoreTS)
blockEncoder
- What kind of encoding policy will be used.public void testEncodingWithCache() throws IOException
IOException
private void testEncodingWithCacheInternals(boolean useTag) throws IOException
IOException
public void testHeaderSizeInCacheWithoutChecksum() throws Exception
Exception
private void testHeaderSizeInCacheWithoutChecksumInternals(boolean useTags) throws IOException
IOException
public void testEncoding() throws IOException
IOException
public void testEncodingWithOffheapKeyValue() throws IOException
IOException
private void testEncodingInternals(boolean useTag) throws IOException
IOException
private org.apache.hadoop.hbase.io.hfile.HFileBlock getSampleHFileBlock(List<org.apache.hadoop.hbase.KeyValue> kvs, boolean useTag)
private org.apache.hadoop.hbase.io.hfile.HFileBlock createBlockOnDisk(org.apache.hadoop.conf.Configuration conf, List<org.apache.hadoop.hbase.KeyValue> kvs, org.apache.hadoop.hbase.io.hfile.HFileBlock block, boolean useTags) throws IOException
IOException
private void writeBlock(org.apache.hadoop.conf.Configuration conf, List<org.apache.hadoop.hbase.Cell> kvs, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, boolean useTags) throws IOException
IOException
public static Collection<Object[]> getAllConfigurations()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.