public class MurmurHash extends Object implements Serializable
| Constructor and Description |
|---|
MurmurHash(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.
|
MurmurHash |
hash(double input)
Process a
double value. |
MurmurHash |
hash(float input)
Process a
float value. |
MurmurHash |
hash(int input)
Process an
integer value. |
MurmurHash |
hash(long input)
Process a
long value. |
MurmurHash |
reset()
Re-initialize the MurmurHash state.
|
public MurmurHash(int seed)
seed - MurmurHash seedpublic MurmurHash reset()
public MurmurHash hash(double input)
double value.input - 64-bit input valuepublic MurmurHash hash(float input)
float value.input - 32-bit input valuepublic MurmurHash hash(int input)
integer value.input - 32-bit input valuepublic MurmurHash hash(long input)
long value.input - 64-bit input valuepublic int hash()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.