Class PrefixKeyDeltaEncoder

All Implemented Interfaces:
DataBlockEncoder

@Private public class PrefixKeyDeltaEncoder extends BufferedDataBlockEncoder
Compress key by storing size of common prefix with previous KeyValue and storing raw size of rest. Format: 1-5 bytes: compressed key length minus prefix (7-bit encoding) 1-5 bytes: compressed value length (7-bit encoding) 1-3 bytes: compressed length of common key prefix ... bytes: rest of key (including timestamp) ... bytes: value In a worst case compressed KeyValue will be three bytes longer than original.