Skip to content

Commit 2fa9a4f

Browse files
authored
Add the best encoding and compression methods (#455)
* Add the best encoding and compression methods * Supplement the best encoding for the old version
1 parent 3f33e07 commit 2fa9a4f

File tree

20 files changed

+146
-142
lines changed

20 files changed

+146
-142
lines changed

src/UserGuide/Master/Tree/Technical-Insider/Encoding-and-Compression.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,18 @@ 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-
| DATE | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
86-
| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
87-
| LONG | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
88-
| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
89-
| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
90-
| TEXT | PLAIN, DICTIONARY |
91-
| STRING | PLAIN, DICTIONARY |
92-
| BLOB | PLAIN, DICTIONARY |
81+
| **Data Type** | **Best Encoding (default)** | **Supported Encoding** |
82+
| ------------- | --------------------------- | ----------------------------------------------------------- |
83+
| BOOLEAN | RLE | PLAIN, RLE |
84+
| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
85+
| DATE | 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+
| TIMESTAMP | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
88+
| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
89+
| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
90+
| TEXT | PLAIN | PLAIN, DICTIONARY |
91+
| STRING | PLAIN | PLAIN, DICTIONARY |
92+
| BLOB | PLAIN | PLAIN |
9393

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

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

112112
* SNAPPY
113113

114-
* LZ4
114+
* LZ4 (Best compression method)
115115

116116
* GZIP
117117

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/UserGuide/latest/Technical-Insider/Encoding-and-Compression.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,18 @@ 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-
| DATE | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
86-
| INT64 | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
87-
| LONG | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
88-
| FLOAT | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
89-
| DOUBLE | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
90-
| TEXT | PLAIN, DICTIONARY |
91-
| STRING | PLAIN, DICTIONARY |
92-
| BLOB | PLAIN, DICTIONARY |
81+
| **Data Type** | **Best Encoding (default)** | **Supported Encoding** |
82+
| ------------- | --------------------------- | ----------------------------------------------------------- |
83+
| BOOLEAN | RLE | PLAIN, RLE |
84+
| INT32 | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
85+
| DATE | 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+
| TIMESTAMP | TS_2DIFF | PLAIN, RLE, TS_2DIFF, GORILLA, ZIGZAG, CHIMP, SPRINTZ, RLBE |
88+
| FLOAT | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
89+
| DOUBLE | GORILLA | PLAIN, RLE, TS_2DIFF, GORILLA, CHIMP, SPRINTZ, RLBE |
90+
| TEXT | PLAIN | PLAIN, DICTIONARY |
91+
| STRING | PLAIN | PLAIN, DICTIONARY |
92+
| BLOB | PLAIN | PLAIN |
9393

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

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

112112
* SNAPPY
113113

114-
* LZ4
114+
* LZ4 (Best compression method)
115115

116116
* GZIP
117117

0 commit comments

Comments
 (0)