Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

system.codecs

描述

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

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

  • 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) — 编解码器的高级说明。

示例

Querysql
SELECT * FROM system.codecs WHERE name='LZ4'
Responsetext
Row 1:
──────
name:                   LZ4
method_byte:            130
is_compression:         1
is_generic_compression: 1
is_encryption:          0
is_timeseries_codec:    0
is_experimental:        0
tier:                   Production
description:            Extremely fast; good compression; balanced speed and efficiency.
Navigation