@InterfaceAudience.Private public class PrefixTreeCodec extends Object implements DataBlockEncoder
PrefixTreeEncoder, and decoding is delegated to instances of
CellSearcher. Encoder and decoder instances are
created and recycled by static PtEncoderFactory and PtDecoderFactory.DataBlockEncoder.EncodedSeeker| Constructor and Description |
|---|
PrefixTreeCodec()
no-arg constructor for reflection
|
| Modifier and Type | Method and Description |
|---|---|
DataBlockEncoder.EncodedSeeker |
createSeeker(KeyValue.KVComparator comparator,
boolean includesMvccVersion)
Is this the correct handling of an illegal comparator? How to prevent that from getting all
the way to this point.
|
ByteBuffer |
decodeKeyValues(DataInputStream source,
boolean includesMvccVersion) |
ByteBuffer |
decodeKeyValues(DataInputStream source,
int allocateHeaderLength,
int skipLastBytes,
boolean includesMvccVersion)
I don't think this method is called during normal HBase operation, so efficiency is not
important.
|
void |
encodeKeyValues(ByteBuffer in,
boolean includesMvccVersion,
HFileBlockEncodingContext blkEncodingCtx)
Copied from BufferedDataBlockEncoder.
|
ByteBuffer |
getFirstKeyInBlock(ByteBuffer block) |
HFileBlockDecodingContext |
newDataBlockDecodingContext(Compression.Algorithm compressionAlgorithm) |
HFileBlockEncodingContext |
newDataBlockEncodingContext(Compression.Algorithm compressionAlgorithm,
DataBlockEncoding encoding,
byte[] header) |
public void encodeKeyValues(ByteBuffer in, boolean includesMvccVersion, HFileBlockEncodingContext blkEncodingCtx) throws IOException
encodeKeyValues in interface DataBlockEncoderIOExceptionpublic ByteBuffer decodeKeyValues(DataInputStream source, boolean includesMvccVersion) throws IOException
decodeKeyValues in interface DataBlockEncoderIOExceptionpublic ByteBuffer decodeKeyValues(DataInputStream source, int allocateHeaderLength, int skipLastBytes, boolean includesMvccVersion) throws IOException
decodeKeyValues in interface DataBlockEncoderIOExceptionpublic ByteBuffer getFirstKeyInBlock(ByteBuffer block)
getFirstKeyInBlock in interface DataBlockEncoderpublic HFileBlockEncodingContext newDataBlockEncodingContext(Compression.Algorithm compressionAlgorithm, DataBlockEncoding encoding, byte[] header)
newDataBlockEncodingContext in interface DataBlockEncoderpublic HFileBlockDecodingContext newDataBlockDecodingContext(Compression.Algorithm compressionAlgorithm)
newDataBlockDecodingContext in interface DataBlockEncoderpublic DataBlockEncoder.EncodedSeeker createSeeker(KeyValue.KVComparator comparator, boolean includesMvccVersion)
createSeeker in interface DataBlockEncoderCopyright © 2014 The Apache Software Foundation. All Rights Reserved.