bvaradar commented on a change in pull request #830: HUDI-123 Rename code 
packages/constants to org.apache.hudi
URL: https://github.com/apache/incubator-hudi/pull/830#discussion_r312761453
 
 

 ##########
 File path: hudi-hive/src/main/java/org/apache/hudi/hive/HiveSyncConfig.java
 ##########
 @@ -0,0 +1,110 @@
+/*
+ * 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.hudi.hive;
+
+import com.beust.jcommander.Parameter;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Configs needed to sync data into Hive.
+ */
+public class HiveSyncConfig implements Serializable {
+
+  @Parameter(names = {
+      "--database"}, description = "name of the target database in Hive", 
required = true)
+  public String databaseName;
+
+  @Parameter(names = {"--table"}, description = "name of the target table in 
Hive", required = true)
+  public String tableName;
+
+  @Parameter(names = {"--user"}, description = "Hive username", required = 
true)
+  public String hiveUser;
+
+  @Parameter(names = {"--pass"}, description = "Hive password", required = 
true)
+  public String hivePass;
+
+  @Parameter(names = {"--jdbc-url"}, description = "Hive jdbc connect url", 
required = true)
+  public String jdbcUrl;
+
+  @Parameter(names = {
+      "--base-path"}, description = "Basepath of hoodie dataset to sync", 
required = true)
+  public String basePath;
+
+  @Parameter(names = "--partitioned-by", description = "Fields in the schema 
partitioned by",
+      required = false)
+  public List<String> partitionFields = new ArrayList<>();
+
+  @Parameter(names = "-partition-value-extractor", description = "Class which 
implements "
+      + "PartitionValueExtractor "
+      + "to extract the partition "
+      + "values from HDFS path")
+  public String partitionValueExtractorClass = 
SlashEncodedDayPartitionValueExtractor.class
+      .getName();
+
+  @Parameter(names = {
+      "--assume-date-partitioning"}, description = "Assume standard yyyy/mm/dd 
partitioning, this"
+      + " exists to support "
+      + "backward compatibility. If"
+      + " you use hoodie 0.3.x, do "
+      + "not set this parameter")
+  public Boolean assumeDatePartitioning = false;
+
+  @Parameter(names = {
 
 Review comment:
   @vinothchandar : This is for creating tables with old com.uber.hoodie input 
format

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


With regards,
Apache Git Services

Reply via email to