ClickHouse/dbms/programs/compressor
2019-04-01 19:34:27 +03:00
..
clickhouse-compressor.cpp Squashed #2471 2018-06-05 23:09:51 +03:00
CMakeLists.txt Fix link in split mode (#4574) 2019-03-04 20:47:31 +03:00
Compressor.cpp Fix level parsing 2019-04-01 19:34:27 +03:00
README.md Parse compression codecs from AST 2019-04-01 19:28:20 +03:00

ClickHouse compressor

Simple program for data compression and decompression.

Examples

Compress data with LZ4:

$ ./clickhouse-compressor < input_file > output_file

Decompress data from LZ4 format:

$ ./clickhouse-compressor --decompress < input_file > output_file

Compress data with ZSTD at level 5:

$ ./clickhouse-compressor --codec 'ZSTD(5)' < input_file > output_file

Compress data with ZSTD level 10, LZ4HC level 7 and LZ4.

$ ./clickhouse-compressor --codec ZSTD --codec LZ4HC --level 7 --codec LZ4 < input_file > output_file