public static Hash getInstance(int type) {
    switch (type) {
      case JENKINS_HASH:
        return JenkinsHash.getInstance();
      case MURMUR_HASH:
        return MurmurHash.getInstance();
      case MURMUR_HASH3:
        return MurmurHash3.getInstance();
      default:
        return null;
    }
  }
Get a singleton instance of hash function of a given type.
@param type predefined hash type
@return hash function instance, or null if type is invalid
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Hash.java