ClickHouse/docs/ru/operations/utilities/clickhouse-compressor.md
olgarev 447c73ce14
Apply suggestions from code review
Co-authored-by: alesapin <alesapin@gmail.com>
2021-05-12 15:11:44 +03:00

28 lines
583 B
Markdown

## ClickHouse compressor
Simple program for data compression and decompression in ClickHouse way.
### 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
```