public static ColumnEncoding getFromMapping(String columnMapping) {
    Preconditions.checkNotNull(columnMapping);

    String encoding = getColumnEncoding(columnMapping);

    return get(encoding);
  }
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