public static ColumnEncoding fromCode(String code) {
    if (!CODE_CACHE.containsKey(code)) {
      throw new IllegalArgumentException("No ColumnEncoding defined with code " + code);
    }

    return CODE_CACHE.get(code);
  }
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