diff --git a/docs/src/.vuepress/sidebar/V1.0.x/en.ts b/docs/src/.vuepress/sidebar/V1.0.x/en.ts index cc91e941e..d6dcca319 100644 --- a/docs/src/.vuepress/sidebar/V1.0.x/en.ts +++ b/docs/src/.vuepress/sidebar/V1.0.x/en.ts @@ -38,6 +38,10 @@ export const enSidebar = { // { text: 'Quick Start', link: 'QuickStart' }, // ], }, - + { + text: 'Data Model', + collapsible: true, + link: 'QuickStart/Data-Model', + }, ] }; diff --git a/docs/src/.vuepress/sidebar/V1.0.x/zh.ts b/docs/src/.vuepress/sidebar/V1.0.x/zh.ts index b62b7ba31..34873140c 100644 --- a/docs/src/.vuepress/sidebar/V1.0.x/zh.ts +++ b/docs/src/.vuepress/sidebar/V1.0.x/zh.ts @@ -38,5 +38,10 @@ export const zhSidebar = { // { text: '快速上手', link: 'QuickStart' }, // ], }, + { + text: '数据模型', + collapsible: true, + link: 'QuickStart/Data-Model', + }, ] }; diff --git a/docs/src/UserGuide/latest/QuickStart/Data-Model.md b/docs/src/UserGuide/latest/QuickStart/Data-Model.md new file mode 100644 index 000000000..66d4ce843 --- /dev/null +++ b/docs/src/UserGuide/latest/QuickStart/Data-Model.md @@ -0,0 +1,65 @@ + +# Data Model + +## Basic Concepts + +To manage industrial IoT timing data, the measurement point data model of TsFile includes the following information + +- DeviceId(String):Device Name +- MeasurementSchema:Measurement points + - measurementId(String):Measurement Point Name + - tsDataType(TSDataType):Data Type + +For the above detailed introduction, please refer to:[Entering Time Series Data](https://tsfile.apache.org/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.html) + +## Example + +![](https://alioss.timecho.com/docs/img/20240502164237-dkcm.png) + +In the above example, the metadata (Scheme) of TsFile contains 2 devices and 5 time series, and is established as a table structure as shown in the following figure: + + + + + + + + + + + + + + + + + + + + + + + + + +
Device IDMeasurement points
Solar panel 1Voltage(FLOAT)
Current(FLOAT)
Fan1
Voltage(FLOAT)
Current(FLOAT)
Wind Speed(FLOAT)
+ diff --git a/docs/src/zh/UserGuide/latest/QuickStart/Data-Model.md b/docs/src/zh/UserGuide/latest/QuickStart/Data-Model.md new file mode 100644 index 000000000..5b8543992 --- /dev/null +++ b/docs/src/zh/UserGuide/latest/QuickStart/Data-Model.md @@ -0,0 +1,65 @@ + +# TsFile 数据模型 + +## 基本概念 + +为管理工业物联网时序数据,TsFile 的测点数据模型包含如下信息 + +- DeviceId(String):设备名 +- MeasurementSchema:测点 + - measurementId(String):测点名 + - tsDataType(TSDataType):数据类型 + +有关上述详细介绍,参见:[走进时序数据](https://tsfile.apache.org/zh/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.html) + +## 示例 + +![](https://alioss.timecho.com/docs/img/tsfile%E6%95%B0%E6%8D%AE%E6%A8%A1%E5%9E%8B.png) + +在上述示例中,TsFile 的元数据(Schema)共包含 2 个设备,5条时间序列,建立为表结构如下图: + + + + + + + + + + + + + + + + + + + + + + + + + +
设备ID测点
太阳能板1电压(FLOAT)
电流(FLOAT)
风机1
电压(FLOAT)
电流(FLOAT)
风速(FLOAT)
+