@Deprecated @InterfaceAudience.Private public class PrefixTreeCodec extends Object implements DataBlockEncoder
This class is created via reflection in DataBlockEncoding enum. Update the enum if class name or package changes.
PrefixTreeDataBlockEncoder implementation of DataBlockEncoder. This is the primary entry point for PrefixTree encoding and decoding. Encoding is delegated to instances ofPrefixTreeEncoder, and decoding is delegated to instances of
CellSearcher. Encoder and decoder instances are
created and recycled by static PtEncoderFactory and PtDecoderFactory.DataBlockEncoder.EncodedSeeker| 构造器和说明 |
|---|
PrefixTreeCodec()
已过时。
no-arg constructor for reflection
|
public ByteBuffer decodeKeyValues(DataInputStream source, HFileBlockDecodingContext decodingCtx) throws IOException
decodeKeyValues 在接口中 DataBlockEncoderIOExceptionpublic ByteBuffer decodeKeyValues(DataInputStream source, int allocateHeaderLength, int skipLastBytes, HFileBlockDecodingContext decodingCtx) throws IOException
IOExceptionpublic ByteBuffer getFirstKeyInBlock(ByteBuffer block)
getFirstKeyInBlock 在接口中 DataBlockEncoderpublic HFileBlockEncodingContext newDataBlockEncodingContext(DataBlockEncoding encoding, byte[] header, HFileContext meta)
newDataBlockEncodingContext 在接口中 DataBlockEncoderpublic HFileBlockDecodingContext newDataBlockDecodingContext(HFileContext meta)
newDataBlockDecodingContext 在接口中 DataBlockEncoderpublic DataBlockEncoder.EncodedSeeker createSeeker(KeyValue.KVComparator comparator, HFileBlockDecodingContext decodingCtx)
createSeeker 在接口中 DataBlockEncoderpublic int encode(Cell cell, HFileBlockEncodingContext encodingCtx, DataOutputStream out) throws IOException
encode 在接口中 DataBlockEncoderIOExceptionpublic void startBlockEncoding(HFileBlockEncodingContext blkEncodingCtx, DataOutputStream out) throws IOException
startBlockEncoding 在接口中 DataBlockEncoderIOExceptionpublic void endBlockEncoding(HFileBlockEncodingContext encodingCtx, DataOutputStream out, byte[] uncompressedBytesWithHeader) throws IOException
endBlockEncoding 在接口中 DataBlockEncoderIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.