public class Murmur3_32 extends Object implements Serializable
Constructor and Description |
---|
Murmur3_32(int seed)
A resettable implementation of the 32-bit MurmurHash algorithm.
|
Modifier and Type | Method and Description |
---|---|
int |
hash()
Finalize and return the MurmurHash output.
|
Murmur3_32 |
hash(double input)
Process a
double value. |
Murmur3_32 |
hash(float input)
Process a
float value. |
Murmur3_32 |
hash(int input)
Process an
integer value. |
Murmur3_32 |
hash(long input)
Process a
long value. |
Murmur3_32 |
reset()
Re-initialize the MurmurHash state.
|
public Murmur3_32(int seed)
seed
- MurmurHash seedpublic Murmur3_32 reset()
public Murmur3_32 hash(double input)
double
value.input
- 64-bit input valuepublic Murmur3_32 hash(float input)
float
value.input
- 32-bit input valuepublic Murmur3_32 hash(int input)
integer
value.input
- 32-bit input valuepublic Murmur3_32 hash(long input)
long
value.input
- 64-bit input valuepublic int hash()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.