gpt4 book ai didi

How to change the unit of timestamp from milliseconds to microseconds in Apache IoTDB?(如何在ApacheIoTDB中将时间戳的单位从毫秒改为微秒?)

转载 作者:bug小助手 更新时间:2023-10-24 19:55:11 24 4
gpt4 key购买 nike



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,具体的配置选项和名称取决于版本


更多回答

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com