Class MurmurHash3

java.lang.Object
org.apache.hadoop.hbase.util.Hash
org.apache.hadoop.hbase.util.MurmurHash3

@Private @Stable public class MurmurHash3 extends Hash
This is a very fast, non-cryptographic hash suitable for general hash-based lookup. See http://code.google.com/p/smhasher/wiki/MurmurHash3 for details.

MurmurHash3 is the successor to MurmurHash2. It comes in 3 variants, and the 32-bit version targets low latency for hash table use.

  • Field Details

  • Constructor Details

  • Method Details

    • getInstance

      public static Hash getInstance()
    • hash

      public <T> int hash(HashKey<T> hashKey, int initval)
      Returns the MurmurHash3_x86_32 hash.
      Specified by:
      hash in class Hash
      Parameters:
      hashKey - key to extract the hash
      initval - the seed value
      Returns:
      hash value