You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/10/19 07:32:09 UTC

[GitHub] [iotdb] xuanronaldo commented on a diff in pull request #7637: Update IoTDB nifi process doc

xuanronaldo commented on code in PR #7637:
URL: https://github.com/apache/iotdb/pull/7637#discussion_r999043607


##########
docs/UserGuide/Ecosystem-Integration/NiFi-IoTDB.md:
##########
@@ -46,29 +46,30 @@ Apache NiFi includes the following capabilities:
     * Multi-tenant authorization and policy management
     * Standard protocols for encrypted communication including TLS and SSH
 
-## PutIoTDB
+## PutIoTDBRecord
 
 This is a processor that reads the content of the incoming FlowFile as individual records using the configured 'Record Reader' and writes them to Apache IoTDB using native interface.
 
-### Properties of PutIoTDB
+### Properties of PutIoTDBRecord
 
-| property      | description                                                  | default value | necessary |
-| ------------- | ------------------------------------------------------------ | ------------- | --------- |
-| Host          | The host of IoTDB.                                           | null          | true      |
-| Port          | The port of IoTDB.                                           | 6667          | true      |
-| Username      | Username to access the IoTDB.                                | null          | true      |
-| Password      | Password to access the IoTDB.                                | 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      |
+| property      | description                                                                                                                                                                                                                                                                                                   | default value | necessary |
+|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------------- | --------- |
+| Host          | The host of IoTDB.                                                                                                                                                                                                                                                                                            | null          | true      |
+| Port          | The port of IoTDB.                                                                                                                                                                                                                                                                                            | 6667          | true      |
+| 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      |
+| 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     |
-| MaxRowNumber  | Specifies the max row number of each tablet.  It can be updated by expression language. | 1024          | false     |
+| Aligned       | Whether using aligned interface?  It can be updated by expression language.                                                                                                                                                                                                                                   | false         | false     |
+| MaxRowNumber  | Specifies the max row number of each tablet.  It can be updated by expression language.                                                                                                                                                                                                                       | 1024          | false     |
 
 ### Inferred Schema of Flowfile
 
 There are a couple of rules about flowfile:
 
 1. The flowfile can be read by `Record Reader`.
-2. The schema of flowfile must contains a field `Time`, and it must be the first.
+2. The schema of flowfile must contain a field `Time`, and it must be the first.
 3. The data type of time must be `STRING` or `LONG`.
 4. Fields excepted time must start with `root.`.

Review Comment:
   It seems like that the fields do not need to start with `root.`, if the `prefix` property is assigned. Besides, the relationship between `tsName` and field name is not  clarified.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org