public static int parseHashType(String name) {
    if ("jenkins".equalsIgnoreCase(name)) {
      return JENKINS_HASH;
    } else if ("murmur".equalsIgnoreCase(name)) {
      return MURMUR_HASH;
    } else if ("murmur3".equalsIgnoreCase(name)) {
      return MURMUR_HASH3;
    } else {
      return INVALID_HASH;
    }
  }
This utility method converts String representation of hash function name to a symbolic
constant. Currently three function types are supported, "jenkins", "murmur" and "murmur3".
@param name hash function name
@return one of the predefined constants
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Hash.java