Package | Description |
---|---|
org.dromara.hutool.core.codec.hash |
提供Hash算法的封装
|
org.dromara.hutool.core.collection |
集合以及Iterator封装,包括集合工具CollUtil,Iterator和Iterable工具IterUtil
|
Modifier and Type | Class and Description |
---|---|
class |
CityHash
Google发布的Hash计算算法:CityHash64 与 CityHash128。
|
class |
KetamaHash
Ketama算法,用于在一致性Hash中快速定位服务器位置
|
class |
MurmurHash
Murmur3 32bit、64bit、128bit 哈希算法实现
此算法来自于:... |
Constructor and Description |
---|
ConsistentHash(Hash32<Object> hashFunc,
int numberOfReplicas,
Collection<T> nodes)
构造
|
Modifier and Type | Method and Description |
---|---|
static <T> List<List<T>> |
CollUtil.group(Collection<T> collection,
Hash32<T> hash)
分组,按照
Hash32 接口定义的hash算法,集合中的元素放入hash值对应的子列表中 |
Copyright © 2025. All rights reserved.