public static class MurmurHash3.IncrementalHash32x86 extends Object
This is an implementation of the 32-bit hash function MurmurHash3_x86_32
from from Austin Applyby's original MurmurHash3 c++
code in SMHasher.
Constructor and Description |
---|
IncrementalHash32x86() |
Modifier and Type | Method and Description |
---|---|
void |
add(byte[] data,
int offset,
int length)
Adds the byte array to the current incremental hash.
|
int |
end()
Generate the 32-bit hash value.
|
void |
start(int seed)
Starts a new incremental hash.
|
public final void start(int seed)
seed
- The initial seed valuepublic final void add(byte[] data, int offset, int length)
data
- The input byte arrayoffset
- The offset of datalength
- The length of arraypublic final int end()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.