问题描述
我需要实现hash8函数,或在Java中模拟其输入/输出. Netezza的简要文档说,hash8实现了詹金斯算法,但是有多个算法/修订版带有该名称
I need to implement the hash8 function, or simulate its input/output in Java. Netezza's brief documentation says that hash8 implements Jenkins Algorithm, but there are multiple algorithms/revisions with that name.
我想知道hash8使用哪个Jenkins算法/修订版(一次一次/lookup2/lookup3/SpookyHash)?这些哈希算法中的一些也需要种子值.我该怎么办?欢迎任何建议.
I am wondering which Jenkins algorithm/revision (one-at-a-time/lookup2/lookup3/SpookyHash) does hash8 use? Some of these hash algorithms also require a seed value. How can I get that? Any suggestions are welcomed.
推荐答案
Netezza hash8()函数返回64位整数.
The Netezza hash8() function returns a 64 bit integer.
根据多年来的发行说明,自发行以来,hash8()中使用的计算至少发生了两次更改,因此在不同版本的Netezza之间不稳定.
According to release notes over the years, the calculation used in hash8() has changed at least twice since release, so it is not stable between versions of Netezza.
这篇关于Netezza中的HASH8函数使用哪种Jenkins哈希算法?一次一次/lookup2/lookup3/SpookyHash?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!