public static class

IdealCalculatorByConsistentHashing.FnvHash

extends Object
implements IdealCalculatorByConsistentHashing.HashFunction
java.lang.Object
   ↳ org.apache.helix.tools.IdealCalculatorByConsistentHashing.FnvHash

Class Overview

The default string hash function. Same as the default function used by Voldmort

Summary

Constants
long FNV_BASIS_64
long FNV_PRIME_64
Public Constructors
IdealCalculatorByConsistentHashing.FnvHash()
Public Methods
int getHashValue(String key)
int hash(byte[] key)
long hash64(long val)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.helix.tools.IdealCalculatorByConsistentHashing.HashFunction

Constants

public static final long FNV_BASIS_64

Constant Value: -3750763034362895579 (0xcbf29ce484222325)

public static final long FNV_PRIME_64

Constant Value: 1099511628211 (0x00000100000001b3)

Public Constructors

public IdealCalculatorByConsistentHashing.FnvHash ()

Public Methods

public int getHashValue (String key)

public int hash (byte[] key)

public long hash64 (long val)