LinJieXiao-XLJ commented on code in PR #365: URL: https://github.com/apache/tsfile/pull/365#discussion_r1903806678
########## docs/src/UserGuide/latest/QuickStart/Data-Model.md: ########## @@ -24,42 +24,45 @@ 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 - - - -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: +- TAG:Tag Column + - name(String):Column Name + - dataType(TSDataType):Data Type +- FIELD:Field Column + - name(String):Column Name + - dataType(TSDataType):Data Type <table> <tr> - <th rowspan="1">Device ID</th> - <th rowspan="1">Measurement points</th> + <th rowspan="1">concept</th> + <th rowspan="1">definition</th> </tr> <tr> - <th rowspan="2">Solar panel 1</th> - <th>Voltage(FLOAT)</th> + <th rowspan="1">table</th> + <th>A collection of devices with the same pattern.The storage table defined during modeling consists of three parts: identification column, time column, and physical quantity column.</th> </tr> <tr> - <th>Current(FLOAT)</th> + <th rowspan="1">TAG</th> + <th>The unique identifier of a device, which can contain 0 to multiple tag columns in a table. The composite value formed by combining the values of the tag columns in the column order when the table was created is called the identifier, and tags with the same composite value are called the same identifier.The data type of the tag column can currently only be String, which can be left unspecified and defaults to StringThe values of the identification column can all be emptyWhen writing, all tag columns must be specified (unspecified identity columns are filled with null by default)</th> </tr> <tr> - <th rowspan="4">Fan1</th> + <th rowspan="1">Time</th> + <th>A table must have a time column, and data with the same identifier value is sorted by time by default.The values in the time column cannot be empty and must be in sequence.</th> </tr> <tr> - <th>Voltage(FLOAT)</th> - </tr> - <tr> - <th>Current(FLOAT)</th> + <th rowspan="1">FIELD</th> + <th>The field column defines the measurement point names and data types for time-series data.</th> </tr> <tr> - <th>Wind Speed(FLOAT)</th> + <th rowspan="1">row</th> + <th>A row of data in the table</th> </tr> </table> + +## Example + +A table is a collection of devices with the same pattern. As shown in the figure below, it is a modeling management of factory equipment, and the physical quantity collection of each device has certain commonalities (such as collecting temperature and humidity physical quantities, collecting physical quantities of the same device on the same frequency, etc.), so it can be managed on a device by device basis. Review Comment: ok,done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
