You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/02/24 07:08:50 UTC

[iotdb] branch master updated: Update nifi doc (#9051)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 2f385d4067 Update nifi doc (#9051)
2f385d4067 is described below

commit 2f385d4067b3e50cbc8d87b9420c0a41a43ab3f9
Author: Zhizhou Li <li...@gmail.com>
AuthorDate: Fri Feb 24 15:08:43 2023 +0800

    Update nifi doc (#9051)
---
 docs/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md    | 4 ++--
 docs/zh/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md b/docs/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md
index 4f973a4fd9..6382bd647f 100644
--- a/docs/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md
+++ b/docs/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md
@@ -59,6 +59,7 @@ This is a processor that reads the content of the incoming FlowFile as individua
 | Username      | Username to access the IoTDB.                                                                                                                                                                                                                                                                                 | null          | true      |
 | Password      | Password to access the IoTDB.                                                                                                                                                                                                                                                                                 | null          | true      |
 | Prefix        | The Prefix begin with root. that will be add to the tsName in data.  <br /> It can be updated by expression language.                                                                                                                                                                                                | null          | true      |
+| Time          | The name of time field                                                                                          | null          | true      |
 | Record Reader | Specifies the type of Record Reader controller service to use <br />for parsing the incoming data and determining the schema.                                                                                                                                                                                 | null          | true      |
 | Schema        | The schema that IoTDB needs doesn't support good by NiFi.<br/>Therefore, you can define the schema here. <br />Besides, you can set encoding type and compression type by this method.<br />If you don't set this property, the inferred schema will be used.<br /> It can be updated by expression language. | null          | false     |
 | Aligned       | Whether using aligned interface?  It can be updated by expression language.                                                                                                                                                                                                                                   | false         | false     |
@@ -69,7 +70,7 @@ This is a processor that reads the content of the incoming FlowFile as individua
 There are a couple of rules about flowfile:
 
 1. The flowfile can be read by `Record Reader`.
-2. The schema of flowfile must contain a field `Time`, and it must be the first.
+2. The schema of flowfile must contain a time field with name set in Time property.
 3. The data type of time must be `STRING` or `LONG`.
 4. Fields excepted time must start with `root.`.
 5. The supported data types are `INT`, `LONG`, `FLOAT`, `DOUBLE`, `BOOLEAN`, `TEXT`.
@@ -82,7 +83,6 @@ The structure of property `Schema`:
 
 ```json
 {
-	"timeType": "LONG",
 	"fields": [{
 		"tsName": "s1",
 		"dataType": "INT32",
diff --git a/docs/zh/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md b/docs/zh/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md
index 686aa96a8c..187a3ea034 100644
--- a/docs/zh/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md
+++ b/docs/zh/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md
@@ -59,6 +59,7 @@ Apache NiFi 包含以下功能:
 | Username      | IoTDB 的用户名                                                                                                                                                    | null   | true     |
 | Password      | IoTDB 的密码                                                                                                                                                     | null   | true     |
 | Prefix        | 将被写入IoTDB的数据的tsName前缀 以root. 开头 <br /> 可以使用Nifi expression language做动态替换.                                                                        | null          | true      |
+| Time          | 时间字段名                                                                                        | null          | true      |
 | Record Reader | 指定一个 Record Reader controller service 来解析数据,并且推断数据格式。                                                                                                         | null   | true     |
 | Schema        | IoTDB 需要的 schema 不能很好的被 NiFi 支持,因此你可以在这里自定义 schema。<br />除此之外,你可以通过这个方式设置编码和压缩类型。如果你没有设置这个配置,就会使用 Record Reader 推断的 schema。<br />这个配置可以通过 Attributes 的表达式来更新。 | null   | false    |
 | Aligned       | 是否使用 aligned 接口?<br />这个配置可以通过 Attributes 的表达式来更新。                                                                                                            | false  | false    |
@@ -69,7 +70,7 @@ Apache NiFi 包含以下功能:
 如果要使用推断类型,需要注意以下几点:
 
 1. 输入的 flowfile 需要能被 `Record Reader` 读取。
-2. flowfile的 schema 中必须包含 `Time` 列,而且 `Time` 列必须是第一列。
+2. flowfile的 schema 中必须包含以时间字段名属性命名的字段
 3. `Time`的数据类型只能是 `STRING`  或者  `LONG `。
 4. 除`Time` 以外的列必须以 `root.` 开头。
 5. 支持的数据类型有: `INT`,`LONG`, `FLOAT`, `DOUBLE`, `BOOLEAN`, `TEXT`。
@@ -82,7 +83,6 @@ Apache NiFi 包含以下功能:
 
 ```json
 {
-   "timeType": "LONG",
    "fields": [{
       "tsName": "s1",
       "dataType": "INT32",