Package io.grpc.xds

Class XxHash64


  • final class XxHash64
    extends java.lang.Object
    The XxHash is a fast, non-cryptographic, 64-bit hash function that has excellent avalanche and 2-way bit independence properties.

    This implementation is a simplified version adapted from OpenHFT/Zero-Allocation-Hashing.

    • Constructor Detail

      • XxHash64

        XxHash64​(long seed)
    • Method Detail

      • hashLong

        long hashLong​(long input)
      • hashInt

        long hashInt​(int input)
      • hashShort

        long hashShort​(short input)
      • hashChar

        long hashChar​(char input)
      • hashByte

        long hashByte​(byte input)
      • hashVoid

        long hashVoid()
      • hashAsciiString

        long hashAsciiString​(java.lang.String input)
      • hashBytes

        long hashBytes​(byte[] bytes)
      • hashBytes

        long hashBytes​(byte[] bytes,
                       int offset,
                       int len)
      • finalize

        private static long finalize​(long hash)