Class XXH64


  • public final class XXH64
    extends Object
    xxHash64. A high quality and fast 64 bit hash code by Yann Colet and Mathias Westerdahl. The class below is modelled like its Murmur3_x86_32 cousin.

    This was largely based on the following (original) C and Java implementations: https://github.com/Cyan4973/xxHash/blob/master/xxhash.c https://github.com/OpenHFT/Zero-Allocation-Hashing/blob/master/src/main/java/net/openhft/hashing/XxHash_r39.java https://github.com/airlift/slice/blob/master/src/main/java/io/airlift/slice/XxHash64.java

    • Constructor Detail

      • XXH64

        public XXH64()
    • Method Detail

      • hashInt

        public static long hashInt​(int input,
                                   long seed)
      • hashLong

        public static long hashLong​(long input,
                                    long seed)
      • hashUnsafeBytes

        public static long hashUnsafeBytes​(org.apache.flink.core.memory.MemorySegment ms,
                                           int offset,
                                           int length,
                                           long seed)