Package org.apache.hadoop.hbase.io.encoding
package org.apache.hadoop.hbase.io.encoding
-
ClassDescriptionDecorates EncodedSeeker with a
HFileBlockDecodingContext
Base class for all data block encoders that use a buffer.Copies only the key part of the keybuffer by doing a deep copy and passes the seeker state members for taking a clone.Stores the state of data block encoder at the beginning of new key.Just copy data, do not do any kind of compression.Encoding of KeyValue.An interface which enable to seek while underlying data is encoded.Provide access to all data block encoding algorithms.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 - ...Encapsulates a data block compressed using a particular encoding algorithm.Internal error which indicates a bug in a data block encoding algorithm.Keeps track of the encoding state.Encoder similar toDiffKeyDeltaEncoder
but supposedly faster.A decoding context that is created by a reader's encoder, and is shared across all of the reader's read operations.A default implementation ofHFileBlockDecodingContext
.A default implementation ofHFileBlockEncodingContext
.An encoding context that is created by a writer's encoder, and is shared across the writer's whole lifetime.Provide access to all index block encoding algorithms.Compress key by storing size of common prefix with previous KeyValue and storing raw size of rest.Store cells following every row's start offset, so we can binary search to a row's cells.