public class Murmur3_128Hasher extends AdvancedStreamingHasher
seed| 构造器和说明 |
|---|
Murmur3_128Hasher() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected AbstractHasher |
createInstance(Object initParam) |
protected long |
makeHash()
Computes a hash code based on the data that have been provided to this hasher.
|
protected void |
process(ByteBuffer bb)
Processes the available bytes of the buffer (at most
chunk bytes). |
protected void |
processRemaining(ByteBuffer bb)
This is invoked for the last bytes of the input, which are not enough to fill a whole chunk.
|
void |
setSeed(long seed) |
doFinal, getHash, putBytes, updateasInt, asLong, hash, padToLong, reset, toLong, updateget, getName, hash, hashpublic void setSeed(long seed)
setSeed 在接口中 StreamingHashersetSeed 在类中 AbstractHasherseed - 也是初始值protected AbstractHasher createInstance(Object initParam)
createInstance 在类中 AbstractHasherprotected void process(ByteBuffer bb)
AdvancedStreamingHasherchunk bytes).process 在类中 AdvancedStreamingHasherprotected void processRemaining(ByteBuffer bb)
AdvancedStreamingHasherByteBuffer is guaranteed to be non-empty.
This implementation simply pads with zeros and delegates to AdvancedStreamingHasher.process(ByteBuffer).
protected long makeHash()
AdvancedStreamingHasherAdvancedStreamingHasher.process(java.nio.ByteBuffer) and any leftover bytes that did not make
a complete chunk are handled with AdvancedStreamingHasher.processRemaining(java.nio.ByteBuffer).makeHash 在类中 AdvancedStreamingHasherCopyright © 2022. All rights reserved.