R
- 返回值类型,为this类型public interface MetroHash<R extends MetroHash<R>>
官方实现:https://github.com/jandrewrogers/MetroHash 官方文档:http://www.jandrewrogers.com/2015/05/27/metrohash/ 来自:https://github.com/postamar/java-metrohash/
Modifier and Type | Method and Description |
---|---|
R |
apply(ByteBuffer input)
将给定的
ByteBuffer 中的数据追加计算hash值此方法会更新hash值状态 |
static MetroHash<?> |
of(long seed,
boolean is128)
创建
MetroHash 对象 |
R |
reset()
重置,重置后可复用对象开启新的计算
|
R |
write(ByteBuffer output,
ByteOrder byteOrder)
将结果hash值写出到
ByteBuffer 中,可选端序 |
static MetroHash<?> of(long seed, boolean is128)
MetroHash
对象seed
- 种子is128
- 是否128位MetroHash
对象R apply(ByteBuffer input)
ByteBuffer
中的数据追加计算hash值input
- 内容R write(ByteBuffer output, ByteOrder byteOrder)
ByteBuffer
中,可选端序output
- 输出byteOrder
- 端序R reset()
Copyright © 2025. All rights reserved.