Class AbstractDataBlockEncoder
java.lang.Object
org.apache.hadoop.hbase.io.encoding.AbstractDataBlockEncoder
- All Implemented Interfaces:
DataBlockEncoder
- Direct Known Subclasses:
BufferedDataBlockEncoder,RowIndexCodecV1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classDecorates EncodedSeeker with aHFileBlockDecodingContextNested classes/interfaces inherited from interface org.apache.hadoop.hbase.io.encoding.DataBlockEncoder
DataBlockEncoder.EncodedSeeker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExtendedCellcreateFirstKeyCell(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 voidpostEncoding(HFileBlockEncodingContext encodingCtx) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:DataBlockEncoderCreates 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:
newDataBlockEncodingContextin interfaceDataBlockEncoder- Returns:
- a newly created encoding context
-
newDataBlockDecodingContext
public HFileBlockDecodingContext newDataBlockDecodingContext(org.apache.hadoop.conf.Configuration conf, HFileContext meta) Description copied from interface:DataBlockEncoderCreates an encoder specific decoding context, which will prepare the data before actual decoding store configuration HFile meta data- Specified by:
newDataBlockDecodingContextin interfaceDataBlockEncoder- Returns:
- a newly created decoding context
-
postEncoding
- Throws:
IOException
-
createFirstKeyCell
-