public class MetroHash64 extends AbstractMetroHash<MetroHash64> implements Hash64<byte[]>
官方实现:https://github.com/jandrewrogers/MetroHash 官方文档:http://www.jandrewrogers.com/2015/05/27/metrohash/ 来自:https://github.com/postamar/java-metrohash/
| Constructor and Description |
|---|
MetroHash64(long seed)
使用指定种子构造
|
| Modifier and Type | Method and Description |
|---|---|
long |
get()
获取计算结果hash值
|
long |
hash64(byte[] bytes)
计算Hash值
|
static MetroHash64 |
of(long seed)
创建
MetroHash64对象 |
MetroHash64 |
reset()
重置,重置后可复用对象开启新的计算
|
MetroHash64 |
write(ByteBuffer output,
ByteOrder byteOrder)
将结果hash值写出到
ByteBuffer中,可选端序 |
applypublic static MetroHash64 of(long seed)
MetroHash64对象seed - 种子MetroHash64对象public MetroHash64 reset()
MetroHashreset in interface MetroHash<MetroHash64>public long get()
public long hash64(byte[] bytes)
Hash64public MetroHash64 write(ByteBuffer output, ByteOrder byteOrder)
MetroHashByteBuffer中,可选端序write in interface MetroHash<MetroHash64>output - 输出byteOrder - 端序Copyright © 2025. All rights reserved.