jhnmora000 commented on a change in pull request #178: GORA-485 Apache Kudu 
datastore for Gora
URL: https://github.com/apache/gora/pull/178#discussion_r316967862
 
 

 ##########
 File path: 
gora-kudu/src/main/java/org/apache/gora/kudu/mapping/KuduMappingBuilder.java
 ##########
 @@ -0,0 +1,170 @@
+/*
+ * 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.gora.kudu.mapping;
+
+import com.google.inject.ConfigurationException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.lang.invoke.MethodHandles;
+import java.util.AbstractMap;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import org.apache.gora.kudu.store.KuduStore;
+import org.apache.gora.persistency.impl.PersistentBase;
+import org.apache.gora.util.GoraException;
+import org.apache.kudu.Type;
+import org.jdom.Document;
+import org.jdom.Element;
+import org.jdom.JDOMException;
+import org.jdom.input.SAXBuilder;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Builder for Mapping definitions of Kudu.
+ */
+public class KuduMappingBuilder<K, T extends PersistentBase> {
+  
+  private static final Logger LOG = 
LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
+  /**
+   * Mapping instance being built
+   */
+  private KuduMapping kuduMapping;
+  
+  private final KuduStore<K, T> dataStore;
+
+  /**
+   * Constructor for KuduMappingBuilder
+   *
+   * @param store KuduStore instance
+   */
+  public KuduMappingBuilder(final KuduStore<K, T> store) {
+    this.kuduMapping = new KuduMapping();
+    this.dataStore = store;
+  }
+
+  /**
+   * Returns the Kudu Mapping being built
+   *
+   * @return Kudu Mapping instance
+   */
+  public KuduMapping getKuduMapping() {
+    return kuduMapping;
+  }
+
+  /**
+   * Sets the Kudu Mapping
+   *
+   * @param kuduMapping Kudu Mapping instance
+   */
+  public void setKuduMapping(KuduMapping kuduMapping) {
 
 Review comment:
   +1

----------------------------------------------------------------
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