You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Apache IoTDB pipe配置中extractor.history时间参数咨询及延迟设置

Apache IoTDB Pipe 历史数据提取时间参数说明

时间基准说明

  • extractor.history.start-time 和 extractor.history.end-time 这两个参数是基于数据本身携带的时间戳(即测点数据的采样/生成时间),而非数据到达IoTDB的系统接收时间。

基于到达时间设置延迟区间的方法

如果需要按数据到达IoTDB的时间筛选历史数据,IoTDB本身没有内置记录数据到达时间的字段,需通过以下步骤实现:

  1. 写入数据时,额外添加自定义测点(例如device.status.arrival_time),将客户端获取的当前系统时间(即数据到达IoTDB的时间)作为该测点的值一同写入。
  2. 配置Pipe时,通过extractor.filter参数结合自定义测点设置时间范围过滤,配合原有的时间参数实现延迟区间筛选。
    示例配置逻辑:
    extractor.history.start-time = <数据本身的起始时间戳>
    extractor.history.end-time = <数据本身的结束时间戳>
    extractor.filter = "arrival_time >= <延迟起始时间戳> AND arrival_time <= <延迟结束时间戳>"
    
    其中<延迟起始时间戳>和<延迟结束时间戳>即为你需要设置的基于数据到达时间的区间范围。

内容的提问来源于stack exchange,提问作者zlyf

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 11:02:32