private static final class Murmur3_32HashFunction.Murmur3_32Hasher extends AbstractStreamingHashFunction.AbstractStreamingHasher
Modifier and Type | Field and Description |
---|---|
private static int |
CHUNK_SIZE |
private int |
h1 |
private int |
length |
Constructor and Description |
---|
Murmur3_32Hasher(int seed) |
Modifier and Type | Method and Description |
---|---|
HashCode |
makeHash() |
protected void |
process(java.nio.ByteBuffer bb)
Processes the available bytes of the buffer (at most
chunk bytes). |
protected void |
processRemaining(java.nio.ByteBuffer bb)
This is invoked for the last bytes of the input, which are not enough to fill a whole chunk.
|
hash, putByte, putBytes, putBytes, putChar, putInt, putLong, putObject, putShort, putUnencodedChars
putBoolean, putDouble, putFloat, putString
private static final int CHUNK_SIZE
private int h1
private int length
protected void process(java.nio.ByteBuffer bb)
AbstractStreamingHashFunction.AbstractStreamingHasher
chunk
bytes).process
in class AbstractStreamingHashFunction.AbstractStreamingHasher
protected void processRemaining(java.nio.ByteBuffer bb)
AbstractStreamingHashFunction.AbstractStreamingHasher
ByteBuffer
is guaranteed to be non-empty.
This implementation simply pads with zeros and delegates to AbstractStreamingHashFunction.AbstractStreamingHasher.process(ByteBuffer)
.
processRemaining
in class AbstractStreamingHashFunction.AbstractStreamingHasher
public HashCode makeHash()
makeHash
in class AbstractStreamingHashFunction.AbstractStreamingHasher