程序包 | 说明 |
---|---|
org.apache.hadoop.hbase.io.encoding |
限定符和类型 | 类和说明 |
---|---|
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
- ... bytes: rest of the row (if prefix length is small enough)
- ... bytes: qualifier (or suffix depending on prefix length)
- 1-8 bytes: timestamp or diff
- 1 byte: type (only if FLAG_SAME_TYPE is not set in the flag)
- ... bytes: value
|
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.
|
class |
RowIndexCodecV1
Store cells following every row's start offset, so we can binary search to a row's cells.
|
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.