Class FnvHashFunction

java.lang.Object
com.linkedin.alpini.base.hash.FnvHashFunction
All Implemented Interfaces:
HashFunction

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

    • FnvHashFunction

      public FnvHashFunction()
  • Method Details

    • hash

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

      public long hash(@Nonnull 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