leonardBang commented on a change in pull request #10468: [FLINK-14649][table 
sql / api] Flatten all the connector properties keys to make it easy to 
configure in DDL
URL: https://github.com/apache/flink/pull/10468#discussion_r355161876
 
 

 ##########
 File path: 
flink-connectors/flink-connector-elasticsearch-base/src/main/java/org/apache/flink/table/descriptors/ElasticsearchValidator.java
 ##########
 @@ -126,4 +137,39 @@ private void 
validateConnectionProperties(DescriptorProperties properties) {
                properties.validateInt(CONNECTOR_CONNECTION_MAX_RETRY_TIMEOUT, 
true, 1);
                properties.validateString(CONNECTOR_CONNECTION_PATH_PREFIX, 
true);
        }
+
+       /**
+        * Parse Hosts String to list.
+        *
+        * <p>Hosts String format was given as following:
+        *
+        * <pre>
+        *     connector.hosts = http://host_name:9092;http://host_name:9093
+        * </pre>
+        * @param descriptorProperties
+        * @return
+        */
+       public static List<ElasticsearchUpsertTableSinkBase.Host> 
validateAndGetHostsStr(DescriptorProperties descriptorProperties) {
 
 Review comment:
   ok ,I think validateAndParseHostsString will be better.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to