Class FnvHashFunction

  • All Implemented Interfaces:
    HashFunction

    public final class FnvHashFunction
    extends java.lang.Object
    implements HashFunction
    Forked from com.linkedin.databus.core.util @ r293057
    • Constructor Summary

      Constructors 
      Constructor Description
      FnvHashFunction()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long hash​(byte[] key)  
      long hash​(byte[] key, int numBuckets)  
      long hash​(long val, int numBuckets)  
      long hash​(java.nio.ByteBuffer buf)  
      long hash​(java.nio.ByteBuffer buf, int off, int len)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FnvHashFunction

        public FnvHashFunction()
    • Method Detail

      • hash

        public long hash​(@Nonnull
                         java.nio.ByteBuffer buf)
        Specified by:
        hash in interface HashFunction
      • hash

        public long hash​(@Nonnull
                         java.nio.ByteBuffer buf,
                         int off,
                         int len)
        Specified by:
        hash in interface HashFunction
      • hash

        public long hash​(@Nonnull
                         byte[] key)
      • hash

        public long hash​(@Nonnull
                         byte[] key,
                         int numBuckets)
        Specified by:
        hash in interface HashFunction
      • hash

        public long hash​(long val,
                         int numBuckets)
        Specified by:
        hash in interface HashFunction