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_r316967792
 
 

 ##########
 File path: gora-kudu/src/main/java/org/apache/gora/kudu/mapping/Column.java
 ##########
 @@ -0,0 +1,161 @@
+/*
+ * 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 org.apache.kudu.Type;
+
+public class Column {
+
+  private String name;
+  private FieldType dataType;
+
+  /**
+   * Constructor for Column
+   *
+   * @param name Column's name
+   * @param dataType Column's data type
+   */
+  public Column(String name, FieldType dataType) {
+    this.name = name;
+    this.dataType = dataType;
+  }
+
+  /**
+   * Returns the column's name
+   *
+   * @return Column's name
+   */
+  public String getName() {
+    return name;
+  }
+
+  /**
+   * Sets the column's name
+   *
+   * @param name Column's name
+   */
+  public void setName(String name) {
+    this.name = name;
+  }
+
+  /**
+   * Returns the column's data-type
+   *
+   * @return Column's data-type
+   */
+  public FieldType getDataType() {
+    return dataType;
+  }
+
+  /**
+   * Sets the column's data-type
+   *
+   * @param dataType Column's data-type
+   */
+  public void setDataType(FieldType dataType) {
 
 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