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
IOExceptionprivate void testEncodingWithCacheInternals(boolean useTag) throws IOException
IOExceptionpublic void testHeaderSizeInCacheWithoutChecksum() throws Exception
Exceptionprivate void testHeaderSizeInCacheWithoutChecksumInternals(boolean useTags) throws IOException
IOExceptionpublic void testEncoding() throws IOException
IOExceptionpublic void testEncodingWithOffheapKeyValue() throws IOException
IOExceptionprivate void testEncodingInternals(boolean useTag) throws IOException
IOExceptionprivate 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
IOExceptionprivate void writeBlock(List<org.apache.hadoop.hbase.Cell> kvs, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, boolean useTags) throws IOException
IOExceptionpublic static Collection<Object[]> getAllConfigurations()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.