Package | Description |
---|---|
org.apache.hadoop.hbase.codec.prefixtree | |
org.apache.hadoop.hbase.io.encoding | |
org.apache.hadoop.hbase.io.hfile |
Provides implementations of
HFile and HFile
BlockCache . |
Modifier and Type | Class and Description |
---|---|
class |
PrefixTreeCodec
Deprecated.
Since 1.2.7. Will be removed in 2.0.0. Write the dev list if you would like to take on the
maintainence of this facility.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
BufferedDataBlockEncoder
Base class for all data block encoders that use a buffer.
|
class |
CopyKeyDataBlockEncoder
Just copy data, do not do any kind of compression.
|
class |
DiffKeyDeltaEncoder
Compress using:
- store size of common prefix
- save column family once, it is same within HFile
- use integer compression for key, value and prefix (7-bit encoding)
- use bits to avoid duplication key length, value length
and type if it same as previous
- store in 3 bits length of timestamp field
- allow diff in timestamp instead of actual value
Format:
- 1 byte: flag
- 1-5 bytes: key length (only if FLAG_SAME_KEY_LENGTH is not set in flag)
- 1-5 bytes: value length (only if FLAG_SAME_VALUE_LENGTH is not set in flag)
- 1-5 bytes: prefix length
- ...
|
class |
FastDiffDeltaEncoder
Encoder similar to
DiffKeyDeltaEncoder but supposedly faster. |
class |
PrefixKeyDeltaEncoder
Compress key by storing size of common prefix with previous KeyValue
and storing raw size of rest.
|
Modifier and Type | Field and Description |
---|---|
private DataBlockEncoder |
EncodedDataBlock.dataBlockEncoder |
private DataBlockEncoder |
DataBlockEncoding.encoder |
Modifier and Type | Method and Description |
---|---|
protected static DataBlockEncoder |
DataBlockEncoding.createEncoder(String fullyQualifiedClassName) |
static DataBlockEncoder |
DataBlockEncoding.getDataBlockEncoderById(short encoderId)
Find and create data block encoder for given id;
|
DataBlockEncoder |
DataBlockEncoding.getEncoder()
Return new data block encoder for given algorithm type.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
DataBlockEncoding.isCorrectEncoder(DataBlockEncoder encoder,
short encoderId)
Check if given encoder has this id.
|
Constructor and Description |
---|
EncodedDataBlock(DataBlockEncoder dataBlockEncoder,
DataBlockEncoding encoding,
byte[] rawKVs,
HFileContext meta)
Create a buffer which will be encoded using dataBlockEncoder.
|
Modifier and Type | Field and Description |
---|---|
private DataBlockEncoder |
HFileReaderV2.EncodedScannerV2.dataBlockEncoder |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.