| 限定符和类型 | 接口和说明 |
|---|---|
interface |
StreamingHasher
流式使用方法:
1) hasher.setSeed()
2)多次调用 hasher.update(byte[]) 动态更新数据
3) 调用 getHash() 获取计算后的Hash值
一次性Hash使用方法:
hasher.hash(byte[])
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractHasher |
| 限定符和类型 | 方法和说明 |
|---|---|
static <H extends Hasher> |
Hashs.getHasher(String hasherName,
Object initParams)
Get a singleton instance of hash function of a given type.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Hasher |
Hasher.get(Object initParams) |
Hasher |
AbstractHasher.get(Object initParams) |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
Hashs.hash(Hasher hasher,
byte[] bytes)
Calculate a hash using all bytes from the input argument, and
a seed of 0.
|
static long |
Hashs.hash(Hasher hasher,
byte[] bytes,
int length,
long seed)
一次性计算 hash
Calculate a hash using bytes from 0 to
length, and
the provided seed value |
static long |
Hashs.hash(Hasher hasher,
byte[] bytes,
long seed)
一次性计算 hash
Calculate a hash using all bytes from the input argument,
and a provided seed value.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractNonStreamingHasher |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractStreamingHasher |
class |
Adler32Hasher |
class |
AdvancedStreamingHasher
A convenience base class for implementors of
Hasher; handles accumulating data until an
entire "chunk" (of implementation-dependent length) is ready to be hashed. |
class |
ChecksumHasher |
class |
HMacHasher |
class |
JenkinsHasher
Produces 32-bit hash for hash table lookup.
|
class |
MessageDigestHasher |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CrcHasher |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Fnv1_32Hasher |
class |
Fnv1_64Hasher |
class |
Fnv1a_32Hasher
Hash function FNV-1a (http://www.isthe.com/chongo/tech/comp/fnv).
|
class |
Fnv1a_64Hasher
Hash function FNV-1a (http://www.isthe.com/chongo/tech/comp/fnv).
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
Murmur2Hasher
This is a very fast, non-cryptographic hash suitable for general hash-based
lookup.
|
class |
Murmur3_128Hasher |
class |
Murmur3_32Hasher |
Copyright © 2022. All rights reserved.