public static String getRawType(String hiveType) {
    if (hiveType != null) {
      return hiveType.toLowerCase().replaceFirst(DIM_PAT, "").trim();
    }
    return hiveType;
  }
Utility class to encode index values for accumulo.
accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/AccumuloIndexLexicoder.java