@InterfaceAudience.Private public class PrefixKeyDeltaEncoder extends BufferedDataBlockEncoder
| Modifier and Type | Class and Description |
|---|---|
private static class |
PrefixKeyDeltaEncoder.SeekerStateBufferedEncodedSeeker |
BufferedDataBlockEncoder.BufferedEncodedSeeker<STATE extends BufferedDataBlockEncoder.SeekerState>, BufferedDataBlockEncoder.OffheapDecodedExtendedCell, BufferedDataBlockEncoder.OnheapDecodedCell, BufferedDataBlockEncoder.SeekerStateAbstractDataBlockEncoder.AbstractEncodedSeekerDataBlockEncoder.EncodedSeeker| Constructor and Description |
|---|
PrefixKeyDeltaEncoder() |
| Modifier and Type | Method and Description |
|---|---|
DataBlockEncoder.EncodedSeeker |
createSeeker(HFileBlockDecodingContext decodingCtx)
Create a HFileBlock seeker which find KeyValues within a block.
|
private int |
decodeKeyValue(DataInputStream source,
ByteBuffer buffer,
int prevKeyOffset) |
Cell |
getFirstKeyCellInBlock(ByteBuff block)
Return first key in block as a cell.
|
protected ByteBuffer |
internalDecodeKeyValues(DataInputStream source,
int allocateHeaderLength,
int skipLastBytes,
HFileBlockDefaultDecodingContext decodingCtx) |
int |
internalEncode(Cell cell,
HFileBlockDefaultEncodingContext encodingContext,
DataOutputStream out) |
String |
toString() |
private void |
writeKeyExcludingCommon(Cell cell,
int commonPrefix,
DataOutputStream out) |
afterDecodingKeyValue, afterEncodingKeyValue, compareCommonFamilyPrefix, compareCommonQualifierPrefix, compareCommonRowPrefix, decodeKeyValues, encode, endBlockEncoding, ensureSpace, startBlockEncodingcreateFirstKeyCell, newDataBlockDecodingContext, newDataBlockEncodingContext, postEncodingpublic PrefixKeyDeltaEncoder()
public int internalEncode(Cell cell, HFileBlockDefaultEncodingContext encodingContext, DataOutputStream out) throws IOException
internalEncode in class BufferedDataBlockEncoderIOExceptionprivate void writeKeyExcludingCommon(Cell cell, int commonPrefix, DataOutputStream out) throws IOException
IOExceptionprotected ByteBuffer internalDecodeKeyValues(DataInputStream source, int allocateHeaderLength, int skipLastBytes, HFileBlockDefaultDecodingContext decodingCtx) throws IOException
internalDecodeKeyValues in class BufferedDataBlockEncoderIOExceptionprivate int decodeKeyValue(DataInputStream source, ByteBuffer buffer, int prevKeyOffset) throws IOException, EncoderBufferTooSmallException
public Cell getFirstKeyCellInBlock(ByteBuff block)
DataBlockEncoderblock - encoded block we want index, the position will not changepublic DataBlockEncoder.EncodedSeeker createSeeker(HFileBlockDecodingContext decodingCtx)
DataBlockEncoderCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.