2022-04-03 23:05:35 +00:00
|
|
|
## ClickHouse compressor
|
2018-12-26 15:01:26 +00:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
```
|
2019-04-01 16:28:20 +00:00
|
|
|
$ ./clickhouse-compressor --codec 'ZSTD(5)' < input_file > output_file
|
2018-12-26 15:01:26 +00:00
|
|
|
```
|
|
|
|
|
2019-04-01 16:36:46 +00:00
|
|
|
Compress data with Delta of four bytes and ZSTD level 10.
|
2018-12-26 15:01:26 +00:00
|
|
|
|
|
|
|
```
|
2019-04-01 16:36:46 +00:00
|
|
|
$ ./clickhouse-compressor --codec 'Delta(4)' --codec 'ZSTD(10)' < input_file > output_file
|
2018-12-26 15:01:26 +00:00
|
|
|
```
|