public static ColumnEncoding fromName(String name) {
    if (!NAME_CACHE.containsKey(name)) {
      throw new IllegalArgumentException("No ColumnEncoding defined with name " + name);
    }

    return NAME_CACHE.get(name);
  }
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