hailin0 commented on code in PR #2431:
URL: 
https://github.com/apache/incubator-seatunnel/pull/2431#discussion_r948015465


##########
seatunnel-connectors-v2/connector-iotdb/src/main/java/org/apache/seatunnel/connectors/seatunnel/iotdb/config/SourceConfig.java:
##########
@@ -0,0 +1,109 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.connectors.seatunnel.iotdb.config;
+
+/**
+ * SourceConfig is the configuration for the IotDBSource.
+ * <p>
+ * please see the following link for more details:
+ * 
https://iotdb.apache.org/UserGuide/Master/API/Programming-Java-Native-API.html
+ */
+public class SourceConfig {
+
+    public static final String SQL = "sql";
+
+    /*---------------------- single node configurations 
-------------------------*/
+
+    /**
+     * The host of the IotDB server.
+     */
+    public static final String HOST = "host";
+
+    /*
+     * The port of the IotDB server.
+     */
+    public static final String PORT = "port";
+
+
+    /*---------------------- multiple node configurations 
-------------------------*/
+
+    /**
+     * multiple nodes
+     */
+    public static final String NODE_URLS = "node_urls";
+
+    /**
+     * Query fields
+     * e.g.
+     * "name:TEXT,age:INT32,height:INT32"
+     */
+    public static final String FIELDS = "fields";
+
+    /*---------------------- other configurations -------------------------*/
+
+    /**
+     * Fetches the next batch of data from the source.
+     */
+    public static final String FETCH_SIZE = "fetch_size";
+
+    /**
+     * Username for the source.
+     */
+    public static final String USERNAME = "username";
+
+    /**
+     * Password for the source.
+     */
+    public static final String PASSWORD = "password";

Review Comment:
   After move to `PORT`?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to