@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 DataBlockEncoder
IOException
public ByteBuffer decodeKeyValues(DataInputStream source, boolean includesMvccVersion) throws IOException
decodeKeyValues
in interface DataBlockEncoder
IOException
public ByteBuffer decodeKeyValues(DataInputStream source, int allocateHeaderLength, int skipLastBytes, boolean includesMvccVersion) throws IOException
decodeKeyValues
in interface DataBlockEncoder
IOException
public ByteBuffer getFirstKeyInBlock(ByteBuffer block)
getFirstKeyInBlock
in interface DataBlockEncoder
public HFileBlockEncodingContext newDataBlockEncodingContext(Compression.Algorithm compressionAlgorithm, DataBlockEncoding encoding, byte[] header)
newDataBlockEncodingContext
in interface DataBlockEncoder
public HFileBlockDecodingContext newDataBlockDecodingContext(Compression.Algorithm compressionAlgorithm)
newDataBlockDecodingContext
in interface DataBlockEncoder
public DataBlockEncoder.EncodedSeeker createSeeker(KeyValue.KVComparator comparator, boolean includesMvccVersion)
createSeeker
in interface DataBlockEncoder
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.