From f18cbe9a54cb3638306a400985aa515aacd0eeea Mon Sep 17 00:00:00 2001 From: W1y1r <2730956796@qq.com> Date: Fri, 6 Dec 2024 17:13:43 +0800 Subject: [PATCH 1/2] Add the best encoding and compression methods --- .../Encoding-and-Compression.md | 26 +++++++++---------- .../Encoding-and-Compression.md | 26 +++++++++---------- .../Encoding-and-Compression.md | 26 +++++++++---------- .../Encoding-and-Compression.md | 26 +++++++++---------- 4 files changed, 52 insertions(+), 52 deletions(-) diff --git a/src/UserGuide/Master/Tree/Technical-Insider/Encoding-and-Compression.md b/src/UserGuide/Master/Tree/Technical-Insider/Encoding-and-Compression.md index 76de6268..5a6639bf 100644 --- a/src/UserGuide/Master/Tree/Technical-Insider/Encoding-and-Compression.md +++ b/src/UserGuide/Master/Tree/Technical-Insider/Encoding-and-Compression.md @@ -78,18 +78,18 @@ The five encodings described in the previous sections are applicable to differen The correspondence between the data type and its supported encodings is summarized in the Table below. -| Data Type | Supported Encoding | -|:---------:|:-----------------------------------------------------------:| -| BOOLEAN | PLAIN, RLE | -| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| DATE | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| LONG | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| TEXT | PLAIN, DICTIONARY | -| STRING | PLAIN, DICTIONARY | -| BLOB | PLAIN, DICTIONARY | +| **Data Type** | **Best Encoding (default)** | **Supported Encoding** | +| ------------- | --------------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| DATE | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| TIMESTAMP | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | +| STRING | PLAIN | PLAIN, DICTIONARY | +| BLOB | PLAIN | PLAIN | When the data type specified by the user does not correspond to the encoding method, the system will prompt an error. @@ -111,7 +111,7 @@ IoTDB allows you to specify the compression method of the column when creating a * SNAPPY -* LZ4 +* LZ4 (Best compression method) * GZIP diff --git a/src/UserGuide/latest/Technical-Insider/Encoding-and-Compression.md b/src/UserGuide/latest/Technical-Insider/Encoding-and-Compression.md index 76de6268..5a6639bf 100644 --- a/src/UserGuide/latest/Technical-Insider/Encoding-and-Compression.md +++ b/src/UserGuide/latest/Technical-Insider/Encoding-and-Compression.md @@ -78,18 +78,18 @@ The five encodings described in the previous sections are applicable to differen The correspondence between the data type and its supported encodings is summarized in the Table below. -| Data Type | Supported Encoding | -|:---------:|:-----------------------------------------------------------:| -| BOOLEAN | PLAIN, RLE | -| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| DATE | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| LONG | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| TEXT | PLAIN, DICTIONARY | -| STRING | PLAIN, DICTIONARY | -| BLOB | PLAIN, DICTIONARY | +| **Data Type** | **Best Encoding (default)** | **Supported Encoding** | +| ------------- | --------------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| DATE | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| TIMESTAMP | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | +| STRING | PLAIN | PLAIN, DICTIONARY | +| BLOB | PLAIN | PLAIN | When the data type specified by the user does not correspond to the encoding method, the system will prompt an error. @@ -111,7 +111,7 @@ IoTDB allows you to specify the compression method of the column when creating a * SNAPPY -* LZ4 +* LZ4 (Best compression method) * GZIP diff --git a/src/zh/UserGuide/Master/Tree/Technical-Insider/Encoding-and-Compression.md b/src/zh/UserGuide/Master/Tree/Technical-Insider/Encoding-and-Compression.md index 99402dea..0fd4bbdd 100644 --- a/src/zh/UserGuide/Master/Tree/Technical-Insider/Encoding-and-Compression.md +++ b/src/zh/UserGuide/Master/Tree/Technical-Insider/Encoding-and-Compression.md @@ -77,18 +77,18 @@ 前文介绍的五种编码适用于不同的数据类型,若对应关系错误,则无法正确创建时间序列。数据类型与支持其编码的编码方式对应关系总结如下表所示。 -| 数据类型 | 支持的编码 | -|:---------:| :---------------------------------------------------------: | -| BOOLEAN | PLAIN, RLE | -| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| DATE | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| TIMESTAMP | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| TEXT | PLAIN, DICTIONARY | -| STRING | PLAIN, DICTIONARY | -| BLOB | PLAIN, DICTIONARY | +| **数据类型** | **最佳的编码(默认)** | **支持的编码** | +| ------------ | ---------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| DATE | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| TIMESTAMP | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | +| STRING | PLAIN | PLAIN, DICTIONARY | +| BLOB | PLAIN | PLAIN | 当用户输入的数据类型与编码方式不对应时,系统会提示错误。如下所示,二阶差分编码不支持布尔类型: @@ -107,7 +107,7 @@ IoTDB 允许在创建一个时间序列的时候指定该列的压缩方式。 * UNCOMPRESSED(不压缩) * SNAPPY 压缩 -* LZ4 压缩 +* LZ4 压缩(最佳压缩方式) * GZIP 压缩 * ZSTD 压缩 * LZMA2 压缩 diff --git a/src/zh/UserGuide/latest/Technical-Insider/Encoding-and-Compression.md b/src/zh/UserGuide/latest/Technical-Insider/Encoding-and-Compression.md index 99402dea..0fd4bbdd 100644 --- a/src/zh/UserGuide/latest/Technical-Insider/Encoding-and-Compression.md +++ b/src/zh/UserGuide/latest/Technical-Insider/Encoding-and-Compression.md @@ -77,18 +77,18 @@ 前文介绍的五种编码适用于不同的数据类型,若对应关系错误,则无法正确创建时间序列。数据类型与支持其编码的编码方式对应关系总结如下表所示。 -| 数据类型 | 支持的编码 | -|:---------:| :---------------------------------------------------------: | -| BOOLEAN | PLAIN, RLE | -| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| DATE | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| TIMESTAMP | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| TEXT | PLAIN, DICTIONARY | -| STRING | PLAIN, DICTIONARY | -| BLOB | PLAIN, DICTIONARY | +| **数据类型** | **最佳的编码(默认)** | **支持的编码** | +| ------------ | ---------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| DATE | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| TIMESTAMP | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | +| STRING | PLAIN | PLAIN, DICTIONARY | +| BLOB | PLAIN | PLAIN | 当用户输入的数据类型与编码方式不对应时,系统会提示错误。如下所示,二阶差分编码不支持布尔类型: @@ -107,7 +107,7 @@ IoTDB 允许在创建一个时间序列的时候指定该列的压缩方式。 * UNCOMPRESSED(不压缩) * SNAPPY 压缩 -* LZ4 压缩 +* LZ4 压缩(最佳压缩方式) * GZIP 压缩 * ZSTD 压缩 * LZMA2 压缩 From 8e2290547482a67b80b7d03a1b2776ade2502eb9 Mon Sep 17 00:00:00 2001 From: W1y1r <2730956796@qq.com> Date: Mon, 9 Dec 2024 09:44:55 +0800 Subject: [PATCH 2/2] Supplement the best encoding for the old version --- .../V0.13.x/Data-Concept/Compression.md | 2 +- .../V0.13.x/Data-Concept/Encoding.md | 16 ++++++++-------- .../V1.0.x/Data-Concept/Compression.md | 2 +- src/UserGuide/V1.0.x/Data-Concept/Encoding.md | 16 ++++++++-------- .../V1.1.x/Data-Concept/Compression.md | 2 +- src/UserGuide/V1.1.x/Data-Concept/Encoding.md | 16 ++++++++-------- .../Basic-Concept/Encoding-and-Compression.md | 18 +++++++++--------- .../Basic-Concept/Encoding-and-Compression.md | 19 ++++++++++--------- .../V0.13.x/Data-Concept/Compression.md | 2 +- .../V0.13.x/Data-Concept/Encoding.md | 16 ++++++++-------- .../V1.0.x/Data-Concept/Compression.md | 2 +- .../UserGuide/V1.0.x/Data-Concept/Encoding.md | 16 ++++++++-------- .../V1.1.x/Data-Concept/Compression.md | 2 +- .../UserGuide/V1.1.x/Data-Concept/Encoding.md | 17 +++++++++-------- .../Basic-Concept/Encoding-and-Compression.md | 19 ++++++++++--------- .../Basic-Concept/Encoding-and-Compression.md | 19 ++++++++++--------- 16 files changed, 94 insertions(+), 90 deletions(-) diff --git a/src/UserGuide/V0.13.x/Data-Concept/Compression.md b/src/UserGuide/V0.13.x/Data-Concept/Compression.md index 99dea55e..5b90aa04 100644 --- a/src/UserGuide/V0.13.x/Data-Concept/Compression.md +++ b/src/UserGuide/V0.13.x/Data-Concept/Compression.md @@ -31,7 +31,7 @@ IoTDB allows you to specify the compression method of the column when creating a * SNAPPY -* LZ4 +* LZ4 (Best compression method) * GZIP diff --git a/src/UserGuide/V0.13.x/Data-Concept/Encoding.md b/src/UserGuide/V0.13.x/Data-Concept/Encoding.md index 0bcafdd6..5e598a94 100644 --- a/src/UserGuide/V0.13.x/Data-Concept/Encoding.md +++ b/src/UserGuide/V0.13.x/Data-Concept/Encoding.md @@ -63,13 +63,13 @@ The five encodings described in the previous sections are applicable to differen **The correspondence between the data type and its supported encodings** -|Data Type |Supported Encoding| -|:---:|:---:| -|BOOLEAN| PLAIN, RLE| -|INT32 |PLAIN, RLE, TS_2DIFF, GORILLA| -|INT64 |PLAIN, RLE, TS_2DIFF, GORILLA| -|FLOAT |PLAIN, RLE, TS_2DIFF, GORILLA| -|DOUBLE |PLAIN, RLE, TS_2DIFF, GORILLA| -|TEXT |PLAIN, DICTIONARY| +| **Data Type** | **Best Encoding (default)** | **Supported Encoding** | +| ------------- | --------------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | diff --git a/src/UserGuide/V1.0.x/Data-Concept/Compression.md b/src/UserGuide/V1.0.x/Data-Concept/Compression.md index b6353488..8faf5b99 100644 --- a/src/UserGuide/V1.0.x/Data-Concept/Compression.md +++ b/src/UserGuide/V1.0.x/Data-Concept/Compression.md @@ -31,7 +31,7 @@ IoTDB allows you to specify the compression method of the column when creating a * SNAPPY -* LZ4 +* LZ4 (Best compression method) * GZIP diff --git a/src/UserGuide/V1.0.x/Data-Concept/Encoding.md b/src/UserGuide/V1.0.x/Data-Concept/Encoding.md index 11f2c919..761ea8c5 100644 --- a/src/UserGuide/V1.0.x/Data-Concept/Encoding.md +++ b/src/UserGuide/V1.0.x/Data-Concept/Encoding.md @@ -72,13 +72,13 @@ The five encodings described in the previous sections are applicable to differen **The correspondence between the data type and its supported encodings** -|Data Type |Supported Encoding| -|:---:|:---:| -|BOOLEAN| PLAIN, RLE| -|INT32 |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG| -|INT64 |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG| -|FLOAT |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ| -|DOUBLE |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ| -|TEXT |PLAIN, DICTIONARY| +| **Data Type** | **Best Encoding (default)** | **Supported Encoding** | +| ------------- | --------------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | diff --git a/src/UserGuide/V1.1.x/Data-Concept/Compression.md b/src/UserGuide/V1.1.x/Data-Concept/Compression.md index 073d1a53..2c9b4829 100644 --- a/src/UserGuide/V1.1.x/Data-Concept/Compression.md +++ b/src/UserGuide/V1.1.x/Data-Concept/Compression.md @@ -31,7 +31,7 @@ IoTDB allows you to specify the compression method of the column when creating a * SNAPPY -* LZ4 +* LZ4 (Best compression method) * GZIP diff --git a/src/UserGuide/V1.1.x/Data-Concept/Encoding.md b/src/UserGuide/V1.1.x/Data-Concept/Encoding.md index b57d9673..19970dfb 100644 --- a/src/UserGuide/V1.1.x/Data-Concept/Encoding.md +++ b/src/UserGuide/V1.1.x/Data-Concept/Encoding.md @@ -76,14 +76,14 @@ The five encodings described in the previous sections are applicable to differen The correspondence between the data type and its supported encodings is summarized in the Table below. -| Data Type | Supported Encoding | -|:---------:|:-------------------------------------------:| -| BOOLEAN | PLAIN, RLE | -| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG | -| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG | -| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ | -| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ | -| TEXT | PLAIN, DICTIONARY | +| **Data Type** | **Best Encoding (default)** | **Supported Encoding** | +| ------------- | --------------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | When the data type specified by the user does not correspond to the encoding method, the system will prompt an error. diff --git a/src/UserGuide/V1.2.x/Basic-Concept/Encoding-and-Compression.md b/src/UserGuide/V1.2.x/Basic-Concept/Encoding-and-Compression.md index 36a5b6e5..1fa416ed 100644 --- a/src/UserGuide/V1.2.x/Basic-Concept/Encoding-and-Compression.md +++ b/src/UserGuide/V1.2.x/Basic-Concept/Encoding-and-Compression.md @@ -79,14 +79,14 @@ The five encodings described in the previous sections are applicable to differen The correspondence between the data type and its supported encodings is summarized in the Table below. -| Data Type | Supported Encoding | -|:---------:|:-----------------------------------------------------------:| -| BOOLEAN | PLAIN, RLE | -| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| TEXT | PLAIN, DICTIONARY | +| **Data Type** | **Best Encoding (default)** | **Supported Encoding** | +| ------------- | --------------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY When the data type specified by the user does not correspond to the encoding method, the system will prompt an error. @@ -108,7 +108,7 @@ IoTDB allows you to specify the compression method of the column when creating a * SNAPPY -* LZ4 +* LZ4 (Best compression method) * GZIP diff --git a/src/UserGuide/V1.3.0-2/Basic-Concept/Encoding-and-Compression.md b/src/UserGuide/V1.3.0-2/Basic-Concept/Encoding-and-Compression.md index d73c4fb4..621971f7 100644 --- a/src/UserGuide/V1.3.0-2/Basic-Concept/Encoding-and-Compression.md +++ b/src/UserGuide/V1.3.0-2/Basic-Concept/Encoding-and-Compression.md @@ -78,14 +78,15 @@ The five encodings described in the previous sections are applicable to differen The correspondence between the data type and its supported encodings is summarized in the Table below. -| Data Type | Supported Encoding | -|:---------:|:-----------------------------------------------------------:| -| BOOLEAN | PLAIN, RLE | -| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| TEXT | PLAIN, DICTIONARY | + +| **Data Type** | **Best Encoding (default)** | **Supported Encoding** | +| ------------- | --------------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | When the data type specified by the user does not correspond to the encoding method, the system will prompt an error. @@ -107,7 +108,7 @@ IoTDB allows you to specify the compression method of the column when creating a * SNAPPY -* LZ4 +* LZ4 (Best compression method) * GZIP diff --git a/src/zh/UserGuide/V0.13.x/Data-Concept/Compression.md b/src/zh/UserGuide/V0.13.x/Data-Concept/Compression.md index b00448a9..110bb12a 100644 --- a/src/zh/UserGuide/V0.13.x/Data-Concept/Compression.md +++ b/src/zh/UserGuide/V0.13.x/Data-Concept/Compression.md @@ -29,7 +29,7 @@ IoTDB 允许在创建一个时间序列的时候指定该列的压缩方式。 * UNCOMPRESSED(不压缩) * SNAPPY 压缩 -* LZ4 压缩 +* LZ4 压缩 (最佳压缩方式) * GZIP 压缩 压缩方式的指定语法详见本文 [SQL 参考文档](../Reference/SQL-Reference.md)。 diff --git a/src/zh/UserGuide/V0.13.x/Data-Concept/Encoding.md b/src/zh/UserGuide/V0.13.x/Data-Concept/Encoding.md index 8335f889..775890ee 100644 --- a/src/zh/UserGuide/V0.13.x/Data-Concept/Encoding.md +++ b/src/zh/UserGuide/V0.13.x/Data-Concept/Encoding.md @@ -62,13 +62,13 @@ GORILLA 编码是一种无损编码,它比较适合编码前后值比较接近 **表格 2-3 数据类型与支持其编码的对应关系** -|数据类型 |支持的编码| -|:---:|:---:| -|BOOLEAN| PLAIN, RLE| -|INT32 |PLAIN, RLE, TS_2DIFF, GORILLA| -|INT64 |PLAIN, RLE, TS_2DIFF, GORILLA| -|FLOAT |PLAIN, RLE, TS_2DIFF, GORILLA| -|DOUBLE |PLAIN, RLE, TS_2DIFF, GORILLA| -|TEXT |PLAIN, DICTIONARY| +| **数据类型** | **最佳的编码(默认)** | **支持的编码** | +| ------------ | ---------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | diff --git a/src/zh/UserGuide/V1.0.x/Data-Concept/Compression.md b/src/zh/UserGuide/V1.0.x/Data-Concept/Compression.md index 188025fb..2b8c5cd7 100644 --- a/src/zh/UserGuide/V1.0.x/Data-Concept/Compression.md +++ b/src/zh/UserGuide/V1.0.x/Data-Concept/Compression.md @@ -29,7 +29,7 @@ IoTDB 允许在创建一个时间序列的时候指定该列的压缩方式。 * UNCOMPRESSED(不压缩) * SNAPPY 压缩 -* LZ4 压缩 +* LZ4 压缩 (最佳压缩方式) * GZIP 压缩 压缩方式的指定语法详见本文 [SQL 参考文档](../Reference/SQL-Reference.md)。 diff --git a/src/zh/UserGuide/V1.0.x/Data-Concept/Encoding.md b/src/zh/UserGuide/V1.0.x/Data-Concept/Encoding.md index 76719713..6bfb706d 100644 --- a/src/zh/UserGuide/V1.0.x/Data-Concept/Encoding.md +++ b/src/zh/UserGuide/V1.0.x/Data-Concept/Encoding.md @@ -71,13 +71,13 @@ ZigZag编码将有符号整型映射到无符号整型,适合比较小的整 **表格 2-3 数据类型与支持其编码的对应关系** -|数据类型 |支持的编码| -|:---:|:---:| -|BOOLEAN| PLAIN, RLE| -|INT32 |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG| -|INT64 |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG| -|FLOAT |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ| -|DOUBLE |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ| -|TEXT |PLAIN, DICTIONARY| +| **数据类型** | **最佳的编码(默认)** | **支持的编码** | +| ------------ | ---------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | diff --git a/src/zh/UserGuide/V1.1.x/Data-Concept/Compression.md b/src/zh/UserGuide/V1.1.x/Data-Concept/Compression.md index 8dc472ad..5ebc69fe 100644 --- a/src/zh/UserGuide/V1.1.x/Data-Concept/Compression.md +++ b/src/zh/UserGuide/V1.1.x/Data-Concept/Compression.md @@ -29,7 +29,7 @@ IoTDB 允许在创建一个时间序列的时候指定该列的压缩方式。 * UNCOMPRESSED(不压缩) * SNAPPY 压缩 -* LZ4 压缩 +* LZ4 压缩 (最佳压缩方式) * GZIP 压缩 * ZSTD 压缩 diff --git a/src/zh/UserGuide/V1.1.x/Data-Concept/Encoding.md b/src/zh/UserGuide/V1.1.x/Data-Concept/Encoding.md index 1e1b2a3f..f21f33c3 100644 --- a/src/zh/UserGuide/V1.1.x/Data-Concept/Encoding.md +++ b/src/zh/UserGuide/V1.1.x/Data-Concept/Encoding.md @@ -73,14 +73,15 @@ CHIMP 是一种无损编码。它是一种新的流式浮点数据压缩算法 前文介绍的五种编码适用于不同的数据类型,若对应关系错误,则无法正确创建时间序列。数据类型与支持其编码的编码方式对应关系总结如下表所示。 -| 数据类型 | 支持的编码 | -| :----- | :----- | -| BOOLEAN | PLAIN, RLE | -| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG | -| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG | -| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ | -| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ | -| TEXT | PLAIN, DICTIONARY | +| **数据类型** | **最佳的编码(默认)** | **支持的编码** | +| ------------ | ---------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | + 当用户输入的数据类型与编码方式不对应时,系统会提示错误。如下所示,二阶差分编码不支持布尔类型: diff --git a/src/zh/UserGuide/V1.2.x/Basic-Concept/Encoding-and-Compression.md b/src/zh/UserGuide/V1.2.x/Basic-Concept/Encoding-and-Compression.md index 5eff25af..91459a78 100644 --- a/src/zh/UserGuide/V1.2.x/Basic-Concept/Encoding-and-Compression.md +++ b/src/zh/UserGuide/V1.2.x/Basic-Concept/Encoding-and-Compression.md @@ -80,14 +80,15 @@ RLBE编码是一种无损编码,将差分编码,位填充编码,游程长 前文介绍的五种编码适用于不同的数据类型,若对应关系错误,则无法正确创建时间序列。数据类型与支持其编码的编码方式对应关系总结如下表所示。 -| 数据类型 | 支持的编码 | -| :------: | :---------------------------------------------------------: | -| BOOLEAN | PLAIN, RLE | -| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| TEXT | PLAIN, DICTIONARY | +| **数据类型** | **最佳的编码(默认)** | **支持的编码** | +| ------------ | ---------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | + 当用户输入的数据类型与编码方式不对应时,系统会提示错误。如下所示,二阶差分编码不支持布尔类型: @@ -106,7 +107,7 @@ IoTDB 允许在创建一个时间序列的时候指定该列的压缩方式。 * UNCOMPRESSED(不压缩) * SNAPPY 压缩 -* LZ4 压缩 +* LZ4 压缩(最佳压缩方式) * GZIP 压缩 * ZSTD 压缩 * LZMA2 压缩 diff --git a/src/zh/UserGuide/V1.3.0-2/Basic-Concept/Encoding-and-Compression.md b/src/zh/UserGuide/V1.3.0-2/Basic-Concept/Encoding-and-Compression.md index 3a0a2140..42f78f89 100644 --- a/src/zh/UserGuide/V1.3.0-2/Basic-Concept/Encoding-and-Compression.md +++ b/src/zh/UserGuide/V1.3.0-2/Basic-Concept/Encoding-and-Compression.md @@ -77,14 +77,15 @@ 前文介绍的五种编码适用于不同的数据类型,若对应关系错误,则无法正确创建时间序列。数据类型与支持其编码的编码方式对应关系总结如下表所示。 -| 数据类型 | 支持的编码 | -| :------: | :---------------------------------------------------------: | -| BOOLEAN | PLAIN, RLE | -| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | -| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | -| TEXT | PLAIN, DICTIONARY | +| **数据类型** | **最佳的编码(默认)** | **支持的编码** | +| ------------ | ---------------------- | ----------------------------------------------------------- | +| BOOLEAN | RLE | PLAIN, RLE | +| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE | +| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE | +| TEXT | PLAIN | PLAIN, DICTIONARY | + 当用户输入的数据类型与编码方式不对应时,系统会提示错误。如下所示,二阶差分编码不支持布尔类型: @@ -103,7 +104,7 @@ IoTDB 允许在创建一个时间序列的时候指定该列的压缩方式。 * UNCOMPRESSED(不压缩) * SNAPPY 压缩 -* LZ4 压缩 +* LZ4 压缩(最佳压缩方式) * GZIP 压缩 * ZSTD 压缩 * LZMA2 压缩