R
- 返回值类型,为this类型public abstract class AbstractMetroHash<R extends AbstractMetroHash<R>> extends Object implements MetroHash<R>
官方实现:https://github.com/jandrewrogers/MetroHash 官方文档:http://www.jandrewrogers.com/2015/05/27/metrohash/ 来自:https://github.com/postamar/java-metrohash/
Constructor and Description |
---|
AbstractMetroHash(long seed)
使用指定种子构造
|
Modifier and Type | Method and Description |
---|---|
R |
apply(ByteBuffer input)
将给定的
ByteBuffer 中的数据追加计算hash值此方法会更新hash值状态 |
public AbstractMetroHash(long seed)
seed
- 种子public R apply(ByteBuffer input)
MetroHash
ByteBuffer
中的数据追加计算hash值apply
in interface MetroHash<R extends AbstractMetroHash<R>>
input
- 内容Copyright © 2025. All rights reserved.