ClickHouse/programs/compressor
alesapin 10c7a6c45e
Add ability to specify Default codec for columns (#14049)
* Add ability to specify DefaultCompression codec which correspond to settings specified in config.xml

* Fix style

* Rename DefaultCompression to simple Default

* Fix compression codec

* Better codec description representation

* Less strange code and one method

* Fix delta
2020-08-28 20:40:45 +03:00
..
clickhouse-compressor.cpp
CMakeLists.txt Refactor CMake build files (#11390) 2020-06-09 13:54:49 +03:00
Compressor.cpp Add ability to specify Default codec for columns (#14049) 2020-08-28 20:40:45 +03:00
README.md

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 Delta of four bytes and ZSTD level 10.

$ ./clickhouse-compressor --codec 'Delta(4)' --codec 'ZSTD(10)' < input_file > output_file