'Murmur'에 해당되는 글 1건
HBase에서 사용하는 hash functionHBase에서 사용하는 hash function
Posted at 2012. 10. 5. 23:22 | Posted in OpenSource/** * This utility method converts String representation of hash function name * to a symbolic constant. Currently two function types are supported, * "jenkins" and "murmur". * @param name hash function name * @return one of the predefined constants */ public static int parseHashType(String name) { if ("jenkins".equalsIgnoreCase(name)) { return JENKINS_HASH; } else if ("murmur".equalsIgnoreCase(name)) { return MURMUR_HASH; } else { return INVALID_HASH; } }