This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new c1cf736 [IOTDB-934] Add statistics description in TsFile document
(#1798)
c1cf736 is described below
commit c1cf7365663f23a7d83a8abea69699fb41d502b6
Author: Zesong Sun <[email protected]>
AuthorDate: Tue Oct 6 10:29:28 2020 +0800
[IOTDB-934] Add statistics description in TsFile document (#1798)
* Update statistics information in TsFile document
* Update Chinese
---
docs/SystemDesign/TsFile/Format.md | 17 +++++++++++++----
docs/zh/SystemDesign/TsFile/Format.md | 17 +++++++++++++----
2 files changed, 26 insertions(+), 8 deletions(-)
diff --git a/docs/SystemDesign/TsFile/Format.md
b/docs/SystemDesign/TsFile/Format.md
index a61d10d..d4c72ee 100644
--- a/docs/SystemDesign/TsFile/Format.md
+++ b/docs/SystemDesign/TsFile/Format.md
@@ -124,6 +124,19 @@ PageHeader Structure
| compressedSize | int | Data size after compressing(if use
SNAPPY) |
| statistics | Statistics | Statistics values |
+Here is the detailed information for `statistics`:
+
+ | Member | Description | DoubleStatistics |
FloatStatistics | IntegerStatistics | LongStatistics | BinaryStatistics |
BooleanStatistics |
+ | :----------------------------------: | :--------------: | :----: | :----: |
:----: | :----: | :----: | :----: |
+ | count | number of time-value points | long | long | long | long | long |
long |
+ | startTime | start time | long | long | long | long | long | long |
+ | endTime | end time | long | long | long | long | long | long |
+ | minValue | min value | double | float | int | long | - | - |
+ | maxValue | max value | double | float | int | long | - | - |
+ | firstValue | first value | double | float | int | long | Binary | boolean|
+ | lastValue | last value | double | float | int | long | Binary | boolean|
+ | sumValue | sum value | double | double | double | double | - | - |
+
##### ChunkGroupFooter
| Member | Type | Description |
@@ -145,8 +158,6 @@ The first part of metadata is `ChunkMetadata`
| tsDataType | TSDataType | Data type |
| statistics | Statistics | Statistic values |
-As for the five statistics (min, max, first, last and sum), `ChunkMetadata` of
Binary and Boolean type only has two values: first and last.
-
##### 1.2.3.2 TimeseriesMetadata
The second part of metadata is `TimeseriesMetadata`.
@@ -159,8 +170,6 @@ The second part of metadata is `TimeseriesMetadata`.
| chunkMetaDataListDataSize | int | ChunkMetadata list size |
| statistics | Statistics | Statistic values |
-As for the five statistics (min, max, first, last and sum),
`TimeseriesMetadata` of Binary and Boolean type only has two values: first and
last.
-
##### 1.2.3.3 TsFileMetaData
The third part of metadata is `TsFileMetaData`.
diff --git a/docs/zh/SystemDesign/TsFile/Format.md
b/docs/zh/SystemDesign/TsFile/Format.md
index 752124d..22b9f7c 100644
--- a/docs/zh/SystemDesign/TsFile/Format.md
+++ b/docs/zh/SystemDesign/TsFile/Format.md
@@ -123,6 +123,19 @@ PageHeader 结构
| compressedSize | int | SNAPPY压缩后数据大小 |
| statistics | Statistics | 统计量 |
+这里是`statistics`的详细信息:
+
+ | 成员 | 描述 | DoubleStatistics | FloatStatistics |
IntegerStatistics | LongStatistics | BinaryStatistics | BooleanStatistics |
+ | :----------------------------------: | :--------------: | :----: | :----: |
:----: | :----: | :----: | :----: |
+ | count | 数据点个数 | long | long | long | long | long | long |
+ | startTime | 开始时间 | long | long | long | long | long | long |
+ | endTime | 结束时间 | long | long | long | long | long | long |
+ | minValue | 最小值 | double | float | int | long | - | - |
+ | maxValue | 最大值 | double | float | int | long | - | - |
+ | firstValue | 第一个值 | double | float | int | long | Binary | boolean|
+ | lastValue | 最后一个值 | double | float | int | long | Binary | boolean|
+ | sumValue | 和 | double | double | double | double | - | - |
+
##### ChunkGroupFooter
| 成员 | 类型 | 解释 |
@@ -144,8 +157,6 @@ PageHeader 结构
| tsDataType | TSDataType | 数据类型 |
| statistics | Statistics | 统计量 |
-其中,对于五个统计值(min、max、first、last、sum),Binary 和 Boolean 类型的 `ChunkMetadata` 只有
first 和 last 两个值。
-
##### 1.2.3.2 TimeseriesMetadata
第二部分的元数据是 `TimeseriesMetadata`。
@@ -158,8 +169,6 @@ PageHeader 结构
| chunkMetaDataListDataSize | int | ChunkMetadata 列表的大小 |
| statistics | Statistics | 统计量 |
-其中,对于五个统计值(min、max、first、last、sum),Binary 和 Boolean 类型的 `TimeseriesMetadata`
只有 first 和 last 两个值。
-
##### 1.2.3.3 TsFileMetaData
第三部分的元数据是 `TsFileMetaData`。