hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject svn commit: r1611523 - /hive/trunk/hbase-handler/src/java/org/apache/hadoop/hive/hbase/ColumnMappings.java
Date Fri, 18 Jul 2014 01:24:12 GMT
Author: navis
Date: Fri Jul 18 01:24:12 2014
New Revision: 1611523

URL: http://svn.apache.org/r1611523
Log:
HIVE-7433 : ColumnMappins.ColumnMapping should expose public accessors for its fields (Andrew
Mains via Navis)

Modified:
    hive/trunk/hbase-handler/src/java/org/apache/hadoop/hive/hbase/ColumnMappings.java

Modified: hive/trunk/hbase-handler/src/java/org/apache/hadoop/hive/hbase/ColumnMappings.java
URL: http://svn.apache.org/viewvc/hive/trunk/hbase-handler/src/java/org/apache/hadoop/hive/hbase/ColumnMappings.java?rev=1611523&r1=1611522&r2=1611523&view=diff
==============================================================================
--- hive/trunk/hbase-handler/src/java/org/apache/hadoop/hive/hbase/ColumnMappings.java (original)
+++ hive/trunk/hbase-handler/src/java/org/apache/hadoop/hive/hbase/ColumnMappings.java Fri
Jul 18 01:24:12 2014
@@ -285,8 +285,11 @@ public class ColumnMappings implements I
     return columnsMapping;
   }
 
+  /**
+   * Represents a mapping from a single Hive column to an HBase column qualifier, column
family or row key.
+   */
   // todo use final fields
-  static class ColumnMapping {
+  public static class ColumnMapping {
 
     ColumnMapping() {
       binaryStorage = new ArrayList<Boolean>(2);
@@ -305,6 +308,50 @@ public class ColumnMappings implements I
     String qualifierPrefix;
     byte[] qualifierPrefixBytes;
 
+    public String getColumnName() {
+      return columnName;
+    }
+
+    public TypeInfo getColumnType() {
+      return columnType;
+    }
+
+    public String getFamilyName() {
+      return familyName;
+    }
+
+    public String getQualifierName() {
+      return qualifierName;
+    }
+
+    public byte[] getFamilyNameBytes() {
+      return familyNameBytes;
+    }
+
+    public byte[] getQualifierNameBytes() {
+      return qualifierNameBytes;
+    }
+
+    public List<Boolean> getBinaryStorage() {
+      return binaryStorage;
+    }
+
+    public boolean isHbaseRowKey() {
+      return hbaseRowKey;
+    }
+
+    public String getMappingSpec() {
+      return mappingSpec;
+    }
+
+    public String getQualifierPrefix() {
+      return qualifierPrefix;
+    }
+
+    public byte[] getQualifierPrefixBytes() {
+      return qualifierPrefixBytes;
+    }
+
     public boolean isCategory(ObjectInspector.Category category) {
       return columnType.getCategory() == category;
     }



Mime
View raw message