Class MurmurHash2
This is a very fast, non-cryptographic hash suitable for general hash-based lookup. See http://murmurhash.googlepages.com/ for more details.
The C version of MurmurHash 2.0 found at that site was ported to Java by Andrzej Bialecki (ab at getopt org).
The code from getopt.org was adapted by Mark Harwood in the form here as one of a pluggable choice of
hashing functions as the core function had to be adapted to work with BytesRefs with offsets and lengths
rather than raw byte arrays.
@lucene.experimental
Assembly: Lucene.Net.Codecs.dll
Syntax
public sealed class MurmurHash2 : HashFunction
Fields
Name | Description |
---|---|
INSTANCE |
Methods
Name | Description |
---|---|
Hash(BytesRef) | |
Hash(Byte[], Int32, Int32, Int32) | |
Hash32(Byte[], Int32, Int32) | Generates 32 bit hash from byte array with default seed value. |