HELP: LZ4 data compression technique TYPE: OBJECT SYNTAX: LZ4(LEVEL=num/FAST/LEV1/LEV2/LEV3/LEV4/LEV5/LEV6/LEV7/LEV8/LEV9/LEV10/LEV11/LEV12/LEV13/LEV14/LEV15/LEV16/BEST/AUTO,SKIP)
The LZ4 compression uses the LZ4 block format with a custom frame header. LZ4 is designed for fast compression and decompression, trading compression ratio for speed.
The compression level runs from 1 to 16 and is turned into the LZ4 acceleration inside the component: acceleration = 17 - level. A low level is therefore a high acceleration - fast and weak - and a high level is a low acceleration:
LZ4 has no store mode; LEV1 is the cheapest setting.
By default, a 4-byte little-endian block size prefix is used in the LZ4 frame header, followed by compressed or uncompressed blocks and an end mark.
If LZ4 compression is used with write.record(), the file attributes cannot be stored in the LZ4 file. The record attributes can be added in front of the record (PRNCTR=RETAIN). By default, a 4 byte length field in little endian is written in front of the data. Such an LZ4 file can be used on record-oriented platforms to recreate the original datasets as PS-VB. You may want to use a ZIP archive or ARMOR encoding to store the file attributes (DCB) to recreate the correct record format and length.
NUMBER: LEVEL=num/FAST/LEV1/LEV2/LEV3/LEV4/LEV5/LEV6/LEV7/LEV8/LEV9/LEV10/LEV11/LEV12/LEV13/LEV14/LEV15/LEV16/BEST/AUTO - Compression level (LZ4 acceleration = 17-level) [AUTO==LEV7 (acceleration 10)]
FAST - Fastest compression (LZ4 acceleration 16)LEV1 - Compression level 1 (LZ4 acceleration 16)LEV2 - Compression level 2 (LZ4 acceleration 15)LEV3 - Compression level 3 (LZ4 acceleration 14)LEV4 - Compression level 4 (LZ4 acceleration 13)LEV5 - Compression level 5 (LZ4 acceleration 12)LEV6 - Compression level 6 (LZ4 acceleration 11)LEV7 - Compression level 7 (LZ4 acceleration 10)LEV8 - Compression level 8 (LZ4 acceleration 9)LEV9 - Compression level 9 (LZ4 acceleration 8)LEV10 - Compression level 10 (LZ4 acceleration 7)LEV11 - Compression level 11 (LZ4 acceleration 6)LEV12 - Compression level 12 (LZ4 acceleration 5)LEV13 - Compression level 13 (LZ4 acceleration 4)LEV14 - Compression level 14 (LZ4 acceleration 3)LEV15 - Compression level 15 (LZ4 acceleration 2)LEV16 - Compression level 16 (LZ4 acceleration 1)BEST - Best compression (LZ4 acceleration 1)AUTO - Automatic compression (level 7, LZ4 acceleration 10)SWITCH: SKIP - Skip compression if no redundancy found [FALSE]