Class AbstractDataBlockEncoder
java.lang.Object
org.apache.hadoop.hbase.io.encoding.AbstractDataBlockEncoder
- All Implemented Interfaces:
DataBlockEncoder
- Direct Known Subclasses:
BufferedDataBlockEncoder
,RowIndexCodecV1
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Decorates EncodedSeeker with aHFileBlockDecodingContext
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.io.encoding.DataBlockEncoder
DataBlockEncoder.EncodedSeeker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ExtendedCell
createFirstKeyCell
(ByteBuffer key, int keyLength) newDataBlockDecodingContext
(org.apache.hadoop.conf.Configuration conf, HFileContext meta) Creates an encoder specific decoding context, which will prepare the data before actual decoding store configuration HFile meta datanewDataBlockEncodingContext
(org.apache.hadoop.conf.Configuration conf, DataBlockEncoding encoding, byte[] header, HFileContext meta) Creates a encoder specific encoding context store configuration encoding strategy used header bytes to be written, put a dummy header here if the header is unknown HFile meta dataprotected void
postEncoding
(HFileBlockEncodingContext encodingCtx) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.io.encoding.DataBlockEncoder
createSeeker, decodeKeyValues, encode, endBlockEncoding, getFirstKeyCellInBlock, startBlockEncoding
-
Constructor Details
-
AbstractDataBlockEncoder
public AbstractDataBlockEncoder()
-
-
Method Details
-
newDataBlockEncodingContext
public HFileBlockEncodingContext newDataBlockEncodingContext(org.apache.hadoop.conf.Configuration conf, DataBlockEncoding encoding, byte[] header, HFileContext meta) Description copied from interface:DataBlockEncoder
Creates a encoder specific encoding context store configuration encoding strategy used header bytes to be written, put a dummy header here if the header is unknown HFile meta data- Specified by:
newDataBlockEncodingContext
in interfaceDataBlockEncoder
- Returns:
- a newly created encoding context
-
newDataBlockDecodingContext
public HFileBlockDecodingContext newDataBlockDecodingContext(org.apache.hadoop.conf.Configuration conf, HFileContext meta) Description copied from interface:DataBlockEncoder
Creates an encoder specific decoding context, which will prepare the data before actual decoding store configuration HFile meta data- Specified by:
newDataBlockDecodingContext
in interfaceDataBlockEncoder
- Returns:
- a newly created decoding context
-
postEncoding
- Throws:
IOException
-
createFirstKeyCell
-