Skip to content

Commit 8e22905

Browse files
committed
Supplement the best encoding for the old version
1 parent f18cbe9 commit 8e22905

File tree

16 files changed

+94
-90
lines changed

16 files changed

+94
-90
lines changed

src/UserGuide/V0.13.x/Data-Concept/Compression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ IoTDB allows you to specify the compression method of the column when creating a
3131

3232
* SNAPPY
3333

34-
* LZ4
34+
* LZ4 (Best compression method)
3535

3636
* GZIP
3737

src/UserGuide/V0.13.x/Data-Concept/Encoding.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ The five encodings described in the previous sections are applicable to differen
6363

6464
**The correspondence between the data type and its supported encodings**
6565

66-
|Data Type |Supported Encoding|
67-
|:---:|:---:|
68-
|BOOLEAN| PLAIN, RLE|
69-
|INT32 |PLAIN, RLE, TS_2DIFF, GORILLA|
70-
|INT64 |PLAIN, RLE, TS_2DIFF, GORILLA|
71-
|FLOAT |PLAIN, RLE, TS_2DIFF, GORILLA|
72-
|DOUBLE |PLAIN, RLE, TS_2DIFF, GORILLA|
73-
|TEXT |PLAIN, DICTIONARY|
66+
| **Data Type** | **Best Encoding (default)** | **Supported Encoding** |
67+
| ------------- | --------------------------- | ----------------------------------------------------------- |
68+
| BOOLEAN | RLE | PLAIN, RLE |
69+
| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
70+
| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
71+
| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
72+
| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
73+
| TEXT | PLAIN | PLAIN, DICTIONARY |
7474

7575
</div>

src/UserGuide/V1.0.x/Data-Concept/Compression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ IoTDB allows you to specify the compression method of the column when creating a
3131

3232
* SNAPPY
3333

34-
* LZ4
34+
* LZ4 (Best compression method)
3535

3636
* GZIP
3737

src/UserGuide/V1.0.x/Data-Concept/Encoding.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ The five encodings described in the previous sections are applicable to differen
7272

7373
**The correspondence between the data type and its supported encodings**
7474

75-
|Data Type |Supported Encoding|
76-
|:---:|:---:|
77-
|BOOLEAN| PLAIN, RLE|
78-
|INT32 |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG|
79-
|INT64 |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG|
80-
|FLOAT |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ|
81-
|DOUBLE |PLAIN, RLE, TS_2DIFF, GORILLA, FREQ|
82-
|TEXT |PLAIN, DICTIONARY|
75+
| **Data Type** | **Best Encoding (default)** | **Supported Encoding** |
76+
| ------------- | --------------------------- | ----------------------------------------------------------- |
77+
| BOOLEAN | RLE | PLAIN, RLE |
78+
| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
79+
| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
80+
| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
81+
| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
82+
| TEXT | PLAIN | PLAIN, DICTIONARY |
8383

8484
</div>

src/UserGuide/V1.1.x/Data-Concept/Compression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ IoTDB allows you to specify the compression method of the column when creating a
3131

3232
* SNAPPY
3333

34-
* LZ4
34+
* LZ4 (Best compression method)
3535

3636
* GZIP
3737

src/UserGuide/V1.1.x/Data-Concept/Encoding.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ The five encodings described in the previous sections are applicable to differen
7676

7777
The correspondence between the data type and its supported encodings is summarized in the Table below.
7878

79-
| Data Type | Supported Encoding |
80-
|:---------:|:-------------------------------------------:|
81-
| BOOLEAN | PLAIN, RLE |
82-
| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG |
83-
| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ, ZIGZAG |
84-
| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ |
85-
| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, FREQ |
86-
| TEXT | PLAIN, DICTIONARY |
79+
| **Data Type** | **Best Encoding (default)** | **Supported Encoding** |
80+
| ------------- | --------------------------- | ----------------------------------------------------------- |
81+
| BOOLEAN | RLE | PLAIN, RLE |
82+
| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
83+
| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
84+
| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
85+
| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
86+
| TEXT | PLAIN | PLAIN, DICTIONARY |
8787

8888
When the data type specified by the user does not correspond to the encoding method, the system will prompt an error.
8989

src/UserGuide/V1.2.x/Basic-Concept/Encoding-and-Compression.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ The five encodings described in the previous sections are applicable to differen
7979

8080
The correspondence between the data type and its supported encodings is summarized in the Table below.
8181

82-
| Data Type | Supported Encoding |
83-
|:---------:|:-----------------------------------------------------------:|
84-
| BOOLEAN | PLAIN, RLE |
85-
| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
86-
| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
87-
| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
88-
| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
89-
| TEXT | PLAIN, DICTIONARY |
82+
| **Data Type** | **Best Encoding (default)** | **Supported Encoding** |
83+
| ------------- | --------------------------- | ----------------------------------------------------------- |
84+
| BOOLEAN | RLE | PLAIN, RLE |
85+
| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
86+
| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
87+
| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
88+
| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
89+
| TEXT | PLAIN | PLAIN, DICTIONARY
9090

9191
When the data type specified by the user does not correspond to the encoding method, the system will prompt an error.
9292

@@ -108,7 +108,7 @@ IoTDB allows you to specify the compression method of the column when creating a
108108

109109
* SNAPPY
110110

111-
* LZ4
111+
* LZ4 (Best compression method)
112112

113113
* GZIP
114114

src/UserGuide/V1.3.0-2/Basic-Concept/Encoding-and-Compression.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,15 @@ The five encodings described in the previous sections are applicable to differen
7878

7979
The correspondence between the data type and its supported encodings is summarized in the Table below.
8080

81-
| Data Type | Supported Encoding |
82-
|:---------:|:-----------------------------------------------------------:|
83-
| BOOLEAN | PLAIN, RLE |
84-
| INT32 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
85-
| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
86-
| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
87-
| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
88-
| TEXT | PLAIN, DICTIONARY |
81+
82+
| **Data Type** | **Best Encoding (default)** | **Supported Encoding** |
83+
| ------------- | --------------------------- | ----------------------------------------------------------- |
84+
| BOOLEAN | RLE | PLAIN, RLE |
85+
| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
86+
| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
87+
| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
88+
| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
89+
| TEXT | PLAIN | PLAIN, DICTIONARY |
8990

9091
When the data type specified by the user does not correspond to the encoding method, the system will prompt an error.
9192

@@ -107,7 +108,7 @@ IoTDB allows you to specify the compression method of the column when creating a
107108

108109
* SNAPPY
109110

110-
* LZ4
111+
* LZ4 (Best compression method)
111112

112113
* GZIP
113114

src/zh/UserGuide/V0.13.x/Data-Concept/Compression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ IoTDB 允许在创建一个时间序列的时候指定该列的压缩方式。
2929

3030
* UNCOMPRESSED(不压缩)
3131
* SNAPPY 压缩
32-
* LZ4 压缩
32+
* LZ4 压缩 (最佳压缩方式)
3333
* GZIP 压缩
3434

3535
压缩方式的指定语法详见本文 [SQL 参考文档](../Reference/SQL-Reference.md)

src/zh/UserGuide/V0.13.x/Data-Concept/Encoding.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ GORILLA 编码是一种无损编码,它比较适合编码前后值比较接近
6262

6363
**表格 2-3 数据类型与支持其编码的对应关系**
6464

65-
|数据类型 |支持的编码|
66-
|:---:|:---:|
67-
|BOOLEAN| PLAIN, RLE|
68-
|INT32 |PLAIN, RLE, TS_2DIFF, GORILLA|
69-
|INT64 |PLAIN, RLE, TS_2DIFF, GORILLA|
70-
|FLOAT |PLAIN, RLE, TS_2DIFF, GORILLA|
71-
|DOUBLE |PLAIN, RLE, TS_2DIFF, GORILLA|
72-
|TEXT |PLAIN, DICTIONARY|
65+
| **数据类型** | **最佳的编码(默认)** | **支持的编码** |
66+
| ------------ | ---------------------- | ----------------------------------------------------------- |
67+
| BOOLEAN | RLE | PLAIN, RLE |
68+
| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
69+
| INT64 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
70+
| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
71+
| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
72+
| TEXT | PLAIN | PLAIN, DICTIONARY |
7373

7474
</div>

0 commit comments

Comments
 (0)