I am new to Apache IoTDB, noticing that default unit of time series timestamps time are in milliseconds. I wonder if it can be changed to nano-second or etc... how can I achieve this?
我是第一次接触ApacheIoTDB,注意到时间序列时间戳的默认单位是毫秒。我想知道能不能改成纳秒或其他……我怎样才能做到这一点呢?
Document should have included it, but I did not find it yet.
文件本应包括它,但我还没有找到它。
更多回答
优秀答案推荐
Datatypes of timestamps in Apache IoTDB are divided into two types: LONG
and DATETIME
(including DATETIME-INPUT
and DATETIME-DISPLAY
). DATETIME
type can set the timestamps to be displayed in microseconds, so you can try to change your timestamp datatype.
Apache IoTDB中的时间戳数据库分为两种类型:LONG和DATETIME(包括DATETIME-INPUT和DATETIME-TIME)。DATETIME类型可以设置时间戳以微秒为单位显示,因此您可以尝试更改时间戳数据类型。
I think you will have to reconfigure IoTDB
我认为您必须重新配置IoTDB
- in IoTDB config file(typically
iotdb-engine.properties
) you can adjust timestamp precision
- the parameter might be called
time_precision
| time_unit
| add it new
time_precision = us
or time_unit = us
- save the configuration and restart the IoTDB service
Ps, specific configuration options and names depend on versions
PS,具体的配置选项和名称取决于版本
更多回答
我是一名优秀的程序员,十分优秀!