跳转到主要内容

描述

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

  • name (String) — 编解码器名称。
  • method_byte (UInt8) — 表示压缩文件中编解码器的字节值。
  • is_compression (UInt8) — 如果此编解码器会执行压缩,则为 True;否则,它可能只是有助于压缩的某种转换。
  • is_generic_compression (UInt8) — 该编解码器是通用压缩算法,如 lz4、zstd。
  • is_encryption (UInt8) — 该编解码器用于加密。
  • is_timeseries_codec (UInt8) — 该编解码器用于浮点时间序列。
  • is_experimental (UInt8) — 该编解码器为 Experimental。
  • description (String) — 该编解码器的概括性描述。

示例

Query
SELECT * FROM system.codecs WHERE name='LZ4'
Response
Row 1:
──────
name:                   LZ4
method_byte:            130
is_compression:         1
is_generic_compression: 1
is_encryption:          0
is_timeseries_codec:    0
is_experimental:        0
description:            Extremely fast; good compression; balanced speed and efficiency.
最后修改于 2026年6月10日