public static ColumnEncoding get(String nameOrCode) {
    ColumnEncoding encoding = CODE_CACHE.get(nameOrCode);
    if (null != encoding) {
      return encoding;
    }

    encoding = NAME_CACHE.get(nameOrCode);
    if (null != encoding) {
      return encoding;
    }

    throw new IllegalArgumentException("No ColumnEncoding defined for " + nameOrCode);
  }
Get the ColumnEncoding which has the given code.

@param code
         The one-character 'code' which uniquely identifies the ColumnEncoding
@return The ColumnEncoding with the code equal to the provided argument
accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/columns/ColumnEncoding.java