public static ChecksumType nameToType(final String name) {
    for (ChecksumType t : ChecksumType.values()) {
      if (t.getName().equals(name)) {
        return t;
      }
    }
    throw new RuntimeException("Unknown checksum type name " + name);
  }
Map a checksum name to a specific type. Do our own names.
@return Type associated with passed code.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/ChecksumType.java