2022-08-26 17:37:11 +00:00
|
|
|
---
|
|
|
|
slug: /ru/operations/utilities/clickhouse-compressor
|
|
|
|
---
|
2021-04-30 07:00:53 +00:00
|
|
|
## ClickHouse compressor
|
|
|
|
|
2021-05-12 12:11:44 +00:00
|
|
|
Simple program for data compression and decompression in ClickHouse way.
|
2021-04-30 07:00:53 +00:00
|
|
|
|
|
|
|
### 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
|
|
|
|
```
|