@InterfaceAudience.Private public class DiffKeyDeltaEncoder extends BufferedDataBlockEncoder
Modifier and Type | Class and Description |
---|---|
protected static class |
DiffKeyDeltaEncoder.DiffCompressionState |
protected static class |
DiffKeyDeltaEncoder.DiffSeekerState |
BufferedDataBlockEncoder.BufferedEncodedSeeker<STATE extends BufferedDataBlockEncoder.SeekerState>, BufferedDataBlockEncoder.OffheapDecodedExtendedCell, BufferedDataBlockEncoder.OnheapDecodedCell, BufferedDataBlockEncoder.SeekerState
AbstractDataBlockEncoder.AbstractEncodedSeeker
DataBlockEncoder.EncodedSeeker
Modifier and Type | Field and Description |
---|---|
(package private) static int |
FLAG_SAME_KEY_LENGTH |
(package private) static int |
FLAG_SAME_TYPE |
(package private) static int |
FLAG_SAME_VALUE_LENGTH |
(package private) static int |
FLAG_TIMESTAMP_IS_DIFF |
(package private) static int |
FLAG_TIMESTAMP_SIGN |
(package private) static int |
MASK_TIMESTAMP_LENGTH |
(package private) static int |
SHIFT_TIMESTAMP_LENGTH |
Constructor and Description |
---|
DiffKeyDeltaEncoder() |
Modifier and Type | Method and Description |
---|---|
private int |
compressSingleKeyValue(DataOutputStream out,
Cell cell,
Cell prevCell) |
DataBlockEncoder.EncodedSeeker |
createSeeker(CellComparator comparator,
HFileBlockDecodingContext decodingCtx)
Create a HFileBlock seeker which find KeyValues within a block.
|
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 |
uncompressSingleKeyValue(DataInputStream source,
ByteBuffer buffer,
DiffKeyDeltaEncoder.DiffCompressionState state) |
afterDecodingKeyValue, afterEncodingKeyValue, compareCommonFamilyPrefix, compareCommonQualifierPrefix, compareCommonRowPrefix, decodeKeyValues, encode, endBlockEncoding, ensureSpace, startBlockEncoding
createFirstKeyCell, newDataBlockDecodingContext, newDataBlockEncodingContext, postEncoding
static final int FLAG_SAME_KEY_LENGTH
static final int FLAG_SAME_VALUE_LENGTH
static final int FLAG_SAME_TYPE
static final int FLAG_TIMESTAMP_IS_DIFF
static final int MASK_TIMESTAMP_LENGTH
static final int SHIFT_TIMESTAMP_LENGTH
static final int FLAG_TIMESTAMP_SIGN
public DiffKeyDeltaEncoder()
private void uncompressSingleKeyValue(DataInputStream source, ByteBuffer buffer, DiffKeyDeltaEncoder.DiffCompressionState state) throws IOException, EncoderBufferTooSmallException
public int internalEncode(Cell cell, HFileBlockDefaultEncodingContext encodingContext, DataOutputStream out) throws IOException
internalEncode
in class BufferedDataBlockEncoder
IOException
private int compressSingleKeyValue(DataOutputStream out, Cell cell, Cell prevCell) throws IOException
IOException
public Cell getFirstKeyCellInBlock(ByteBuff block)
DataBlockEncoder
block
- encoded block we want index, the position will not changepublic DataBlockEncoder.EncodedSeeker createSeeker(CellComparator comparator, HFileBlockDecodingContext decodingCtx)
DataBlockEncoder
comparator
- what kind of comparison should be usedprotected ByteBuffer internalDecodeKeyValues(DataInputStream source, int allocateHeaderLength, int skipLastBytes, HFileBlockDefaultDecodingContext decodingCtx) throws IOException
internalDecodeKeyValues
in class BufferedDataBlockEncoder
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.