org.apache.hadoop.hbase.util.Hash.parseHashType()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(176)

本文整理了Java中org.apache.hadoop.hbase.util.Hash.parseHashType()方法的一些代码示例,展示了Hash.parseHashType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hash.parseHashType()方法的具体详情如下:
包路径:org.apache.hadoop.hbase.util.Hash
类名称:Hash
方法名:parseHashType

Hash.parseHashType介绍

[英]This utility method converts String representation of hash function name to a symbolic constant. Currently three function types are supported, "jenkins", "murmur" and "murmur3".
[中]此实用程序方法将哈希函数名的字符串表示形式转换为符号常量。目前支持三种功能类型,“詹金斯”、“杂音”和“杂音3”。

代码示例

代码示例来源:origin: apache/hbase

/**
 * This utility method converts the name of the configured
 * hash type to a symbolic constant.
 * @param conf configuration
 * @return one of the predefined constants
 */
public static int getHashType(Configuration conf) {
 String name = conf.get("hbase.hash.type", "murmur");
 return parseHashType(name);
}

代码示例来源:origin: com.aliyun.hbase/alihbase-common

/**
 * This utility method converts the name of the configured
 * hash type to a symbolic constant.
 * @param conf configuration
 * @return one of the predefined constants
 */
public static int getHashType(Configuration conf) {
 String name = conf.get("hbase.hash.type", "murmur");
 return parseHashType(name);
}

代码示例来源:origin: org.apache.hbase/hbase-common

/**
 * This utility method converts the name of the configured
 * hash type to a symbolic constant.
 * @param conf configuration
 * @return one of the predefined constants
 */
public static int getHashType(Configuration conf) {
 String name = conf.get("hbase.hash.type", "murmur");
 return parseHashType(name);
}

代码示例来源:origin: co.cask.hbase/hbase

/**
 * This utility method converts the name of the configured
 * hash type to a symbolic constant.
 * @param conf configuration
 * @return one of the predefined constants
 */
public static int getHashType(Configuration conf) {
 String name = conf.get("hbase.hash.type", "murmur");
 return parseHashType(name);
}

代码示例来源:origin: harbby/presto-connectors

/**
 * This utility method converts the name of the configured
 * hash type to a symbolic constant.
 * @param conf configuration
 * @return one of the predefined constants
 */
public static int getHashType(Configuration conf) {
 String name = conf.get("hbase.hash.type", "murmur");
 return parseHashType(name);
}

相关文章