Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
lz4.hpp File Reference

LZ4 raw-block compression codec for Signet Forge (wraps liblz4). More...

Go to the source code of this file.

Detailed Description

LZ4 raw-block compression codec for Signet Forge (wraps liblz4).

Thin wrapper around liblz4 providing LZ4 raw block compression and decompression conforming to the CompressionCodec interface. Conditionally compiled when SIGNET_HAS_LZ4 is defined (set by CMake when the lz4 dependency is found via SIGNET_ENABLE_LZ4=ON).

Parquet LZ4 variants
The Parquet spec defines two LZ4 enum values:
  • Compression::LZ4 (value 5) – legacy, Hadoop-compatible, sometimes framed
  • Compression::LZ4_RAW (value 7) – raw block format (preferred for modern Parquet)

This codec implements LZ4_RAW (raw block format), which is the standard for modern Parquet files.

Usage
signet::forge::register_lz4_codec(); // once at startup
// Then use compress()/decompress() via the CodecRegistry automatically.
See also
CompressionCodec, CodecRegistry, register_lz4_codec()

Definition in file lz4.hpp.