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, putUnencodedCharsputBoolean, putDouble, putFloat, putStringprivate static final int CHUNK_SIZE
private int h1
private int length
protected void process(java.nio.ByteBuffer bb)
AbstractStreamingHashFunction.AbstractStreamingHasherchunk bytes).process in class AbstractStreamingHashFunction.AbstractStreamingHasherprotected void processRemaining(java.nio.ByteBuffer bb)
AbstractStreamingHashFunction.AbstractStreamingHasherByteBuffer is guaranteed to be non-empty.
This implementation simply pads with zeros and delegates to AbstractStreamingHashFunction.AbstractStreamingHasher.process(ByteBuffer).
processRemaining in class AbstractStreamingHashFunction.AbstractStreamingHasherpublic HashCode makeHash()
makeHash in class AbstractStreamingHashFunction.AbstractStreamingHasher