Package org.apache.hadoop.hbase.io.hfile
Class TestHFileDataBlockEncoder
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestHFileDataBlockEncoder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoderstatic final HBaseClassTestRuleprivate final org.apache.hadoop.conf.Configurationprivate final RedundantKVGeneratorprivate boolean
- 
Constructor SummaryConstructorsConstructorDescriptionTestHFileDataBlockEncoder(org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder blockEncoder, boolean includesMemstoreTS) Create test for given data block encoding configuration.
- 
Method SummaryModifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.io.hfile.HFileBlockcreateBlockOnDisk(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[]>Returns All possible data block encoding configurationsprivate org.apache.hadoop.hbase.io.hfile.HFileBlockgetSampleHFileBlock(List<org.apache.hadoop.hbase.KeyValue> kvs, boolean useTag) voidTest encoding.private voidtestEncodingInternals(boolean useTag) voidTest putting and taking out blocks into cache with different encoding options.private voidtestEncodingWithCacheInternals(boolean useTag) voidTest encoding with offheap keyvalue.voidTest for HBASE-5746.private voidtestHeaderSizeInCacheWithoutChecksumInternals(boolean useTags) private voidwriteBlock(org.apache.hadoop.conf.Configuration conf, List<org.apache.hadoop.hbase.ExtendedCell> kvs, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, boolean useTags) 
- 
Field Details- 
CLASS_RULE
- 
conf
- 
generator
- 
blockEncoder
- 
includesMemstoreTS
 
- 
- 
Constructor Details- 
TestHFileDataBlockEncoderpublic TestHFileDataBlockEncoder(org.apache.hadoop.hbase.io.hfile.HFileDataBlockEncoder blockEncoder, boolean includesMemstoreTS) Create test for given data block encoding configuration.- Parameters:
- blockEncoder- What kind of encoding policy will be used.
 
 
- 
- 
Method Details- 
testEncodingWithCacheTest putting and taking out blocks into cache with different encoding options.- Throws:
- IOException
 
- 
testEncodingWithCacheInternals- Throws:
- IOException
 
- 
testHeaderSizeInCacheWithoutChecksumTest for HBASE-5746.- Throws:
- Exception
 
- 
testHeaderSizeInCacheWithoutChecksumInternals- Throws:
- IOException
 
- 
testEncodingTest encoding.- Throws:
- IOException
 
- 
testEncodingWithOffheapKeyValueTest encoding with offheap keyvalue. This test just verifies if the encoders work with DBB and does not use the getXXXArray() API- Throws:
- IOException
 
- 
testEncodingInternals- Throws:
- IOException
 
- 
getSampleHFileBlockprivate org.apache.hadoop.hbase.io.hfile.HFileBlock getSampleHFileBlock(List<org.apache.hadoop.hbase.KeyValue> kvs, boolean useTag) 
- 
createBlockOnDiskprivate 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 - Throws:
- IOException
 
- 
writeBlockprivate void writeBlock(org.apache.hadoop.conf.Configuration conf, List<org.apache.hadoop.hbase.ExtendedCell> kvs, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, boolean useTags) throws IOException - Throws:
- IOException
 
- 
getAllConfigurationsReturns All possible data block encoding configurations
 
-