Skip to main content

Module codec

Module codec 

Source
Expand description

Automatic codec selection and compression.

Don’t want to think about which codec to use? CodecSelector analyzes your data and picks the best one. Or use TypeSpecificCompressor to compress and decompress with a single call.

CodecBest forTypical savings
NoneSmall data, random access1x (no compression)
DeltaSorted integers2-10x
DeltaBitPackedSequential IDs, timestamps5-20x
BitPackedSmall integers (ages, counts)2-16x
DictionaryRepeated strings (labels)2-50x
BitVectorBooleans8x
RunLengthHighly repetitive data2-100x

Structs§

CodecSelector
Analyzes your data and picks the best compression codec.
CompressedData
A compressed chunk of data with everything needed to decompress it.
TypeSpecificCompressor
One-stop compression - picks the codec and compresses in a single call.

Enums§

CompressionCodec
Identifies which compression algorithm was used on a chunk of data.
CompressionMetadata
Metadata needed for decompression.