> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ClickHouse Compressor 文档

# clickhouse-compressor

用于数据压缩和解压缩的简单工具。

<div id="examples">
  ### 示例
</div>

使用 LZ4 压缩数据：

```bash theme={null}
$ ./clickhouse-compressor < input_file > output_file
```

解压 LZ4 格式的数据：

```bash theme={null}
$ ./clickhouse-compressor --decompress < input_file > output_file
```

使用 ZSTD 以 5 级压缩数据：

```bash theme={null}
$ ./clickhouse-compressor --codec 'ZSTD(5)' < input_file > output_file
```

使用四字节 Delta 和 ZSTD 级别 10 压缩数据。

```bash theme={null}
$ ./clickhouse-compressor --codec 'Delta(4)' --codec 'ZSTD(10)' < input_file > output_file
```
