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 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(List<org.apache.hadoop.hbase.KeyValue> kvs,
org.apache.hadoop.hbase.io.hfile.HFileBlock block,
boolean useTags) |
static Collection<Object[]> |
getAllConfigurations() |
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(List<org.apache.hadoop.hbase.Cell> kvs,
org.apache.hadoop.hbase.io.hfile.HFileContext fileContext,
boolean useTags) |
public static final HBaseClassTestRule CLASS_RULE
private org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder blockEncoder
private RedundantKVGenerator generator
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(List<org.apache.hadoop.hbase.KeyValue> kvs, org.apache.hadoop.hbase.io.hfile.HFileBlock block, boolean useTags) throws IOException
IOException
private void writeBlock(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–2019 The Apache Software Foundation. All rights reserved.