mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
31 lines
644 B
Markdown
31 lines
644 B
Markdown
---
|
|
slug: /ru/operations/utilities/clickhouse-compressor
|
|
---
|
|
## 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
|
|
```
|