> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-parallel-read-in-order-multi-part.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 包含队列中编解码器相关信息的系统表。

# system.codecs

## 描述

包含有关压缩和加密编解码器的信息。

你可以使用此表查看可用的压缩和加密编解码器信息

## 列

* `name` ([String](/zh/reference/data-types/string)) — 编解码器名称。
* `method_byte` ([UInt8](/zh/reference/data-types/int-uint)) — 表示压缩文件中编解码器的字节。
* `is_compression` ([UInt8](/zh/reference/data-types/int-uint)) — 如果此编解码器会压缩数据，则为 True；否则，它可能只是有助于压缩的转换。
* `is_generic_compression` ([UInt8](/zh/reference/data-types/int-uint)) — 该编解码器是通用压缩算法，例如 lz4、zstd。
* `is_encryption` ([UInt8](/zh/reference/data-types/int-uint)) — 该编解码器用于加密。
* `is_timeseries_codec` ([UInt8](/zh/reference/data-types/int-uint)) — 该编解码器用于浮点型时间序列数据。
* `tier` ([Enum8('Production' = 0, 'Obsolete' = 4, 'Experimental' = 8, 'Beta' = 12, 'PrivatePreview' = 16)](/zh/reference/data-types/enum)) — 此编解码器的支持级别 (例如 'Production'、'Beta' 或 'Experimental') 。
* `description` ([String](/zh/reference/data-types/string)) — 编解码器的高级说明。

## 示例

```sql title="Query" theme={null}
SELECT * FROM system.codecs WHERE name='LZ4'
```

```text title="Response" theme={null}
Row 1:
──────
name:                   LZ4
method_byte:            130
is_compression:         1
is_generic_compression: 1
is_encryption:          0
is_timeseries_codec:    0
tier:                   Production
description:            Extremely fast; good compression; balanced speed and efficiency.
```
