Class XXH64
java.lang.Object
org.apache.flink.table.runtime.functions.aggregate.hyperloglog.XXH64
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longhashInt(int input, long seed) static longhashLong(long input, long seed) static longhashUnsafeBytes(org.apache.flink.core.memory.MemorySegment ms, int offset, int length, long seed)
-
Field Details
-
DEFAULT_SEED
public static final long DEFAULT_SEED- See Also:
-
-
Constructor Details
-
XXH64
public XXH64()
-
-
Method Details
-
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)
-