Documentation of 'cc.redberry.core.utils.HashFunctions' Java class
HashFunctions
cc.redberry.core.utils

Class HashFunctions

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static long FNV_BASIS
      Fowler/Noll/Vo hash algorithms FNV_BASIS constant

      static long FNV_PRIME_32
      Fowler/Noll/Vo hash algorithms FNV_PRIME constant for 32 bit hash

      static long FNV_PRIME_64
      Fowler/Noll/Vo hash algorithms FNV_PRIME constant for 64 bit hash

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static int FVN32hash(byte[] bytes)
      Fowler-Noll-Vo 32 bit hash (FNV-1a) for bytes array.

      static int FVN32hash(int c)
      Fowler-Noll-Vo 32 bit hash (FNV-1a) for integer key.
      static long FVN64hash(byte[] bytes)
      Fowler-Noll-Vo 64 bit hash (FNV-1a) for bytes array.

      static long FVN64hash(long c)
      Fowler-Noll-Vo 64 bit hash (FNV-1a) for long key.
      static int FVN64to32hash(long c)
      Fowler-Noll-Vo 32 bit hash (FNV-1a) for long key.
      static int JenkinWang32shift(int key)
      Based on an original suggestion on Robert Jenkin's part in 1997 and Thomas Wang 2007 updates.
      static long JenkinWang64shift(long key)
      Based on an original suggestion on Robert Jenkin's part in 1997 and Thomas Wang 2007 updates.
      static int mix(int a, int b, int c)
      Robert Jenkins' 96 bit Mix Function.
      static int MurmurHash2(byte[] data)
      MurmurHash hash function for bytes array with default seed value equals 0x2f1a32b3.
      static int MurmurHash2(byte[] data, int seed)
      MurmurHash hash function for bytes array.
      static int MurmurHash2(int c)
      MurmurHash hash function integer with default seed value equals to 0x2f1a32b3.
      static int MurmurHash2(int c, int seed)
      MurmurHash hash function integer.
      static int Wang32shiftmult(int key)
      This method uses a combination of bit shifts and integer multiplication to hash the input key.
      static int Wang64to32shift(long key)
      Hashing long to int.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.