smile.hash
Class MurmurHash
- java.lang.Object
-
- smile.hash.MurmurHash
-
public class MurmurHash extends java.lang.ObjectThis is a very fast, non-cryptographic hash suitable for general hash-based lookup. See http://murmurhash.googlepages.com/ for more details. hash32() and hash64() are MurmurHash 2.0. hash3_x64_128() is MurmurHash 3.0.The C version of MurmurHash 2.0 found at that site was ported to Java by Andrzej Bialecki (ab at getopt org).
This class is copied from Apache Cassandra.
-
-
Constructor Summary
Constructors Constructor and Description MurmurHash()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static longhash2_64(java.nio.ByteBuffer key, int offset, int length, long seed)static voidhash3_x64_128(java.nio.ByteBuffer key, int offset, int length, long seed, long[] result)static inthash32(java.nio.ByteBuffer data, int offset, int length, int seed)
-
-
-
Method Detail
-
hash32
public static int hash32(java.nio.ByteBuffer data, int offset, int length, int seed)
-
hash2_64
public static long hash2_64(java.nio.ByteBuffer key, int offset, int length, long seed)
-
hash3_x64_128
public static void hash3_x64_128(java.nio.ByteBuffer key, int offset, int length, long seed, long[] result)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG