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.
| Codec | Best for | Typical savings |
|---|---|---|
| None | Small data, random access | 1x (no compression) |
| Delta | Sorted integers | 2-10x |
| DeltaBitPacked | Sequential IDs, timestamps | 5-20x |
| BitPacked | Small integers (ages, counts) | 2-16x |
| Dictionary | Repeated strings (labels) | 2-50x |
| BitVector | Booleans | 8x |
| RunLength | Highly repetitive data | 2-100x |
Structs§
- Codec
Selector - Analyzes your data and picks the best compression codec.
- Compressed
Data - A compressed chunk of data with everything needed to decompress it.
- Type
Specific Compressor - One-stop compression - picks the codec and compresses in a single call.
Enums§
- Compression
Codec - Identifies which compression algorithm was used on a chunk of data.
- Compression
Metadata - Metadata needed for decompression.