Data Type
- BOOLEAN (Boolean)
- INT32 (Integer)
- INT64 (Long Integer)
- DOUBLE (Double Precision Floating Point)
- TEXT (String)
The time series of FLOAT and DOUBLE type can specify (MAX_POINT_NUMBER, see this page for more information on how to specify), which is the number of digits after the decimal point of the floating point number, if the encoding method is or TS_2DIFF. If MAX_POINT_NUMBER is not specified, the system will use in the configuration file .
- For Float data value, The data range is (-Integer.MAX_VALUE, Integer.MAX_VALUE), rather than Float.MAX_VALUE, and the max_point_number is 19, caused by the limition of function Math.round(float) in Java.
When the data type of data input by the user in the system does not correspond to the data type of the time series, the system will report type errors. As shown below, the second-order difference encoding does not support the Boolean type:
Timestamp
The timestamp is the time point at which data is produced. It includes absolute timestamps and relative timestamps
Supported formats of DATETIME-INPUT type timestamp
IoTDB can support LONG types and DATETIME-DISPLAY types when displaying timestamps. The DATETIME-DISPLAY type can support user-defined time formats. The syntax of the custom time format is shown in the table below:
The syntax of the custom time format
Relative timestamp
Syntax:
The syntax of the duration unit
eg: