Top Description Constructors Methods
com.carrotsearch.sizeof

pack-priv final Class MurmurHash3

extends Object
Class Inheritance

Hash routines for primitive types. The implementation is based on the finalization step from Austin Appleby's MurmurHash3.
See Also
http://sites.google.com/site/murmurhash/

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int
hash(int k)

Hashes a 4-byte sequence (Java int).

public static long
hash(long k)

Hashes an 8-byte sequence (Java long).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MurmurHash3back to summary
private MurmurHash3()

Method Detail

hashback to summary
public static int hash(int k)

Hashes a 4-byte sequence (Java int).

hashback to summary
public static long hash(long k)

Hashes an 8-byte sequence (Java long).