public static class

ConsistentHashingMasterSlaveStrategy.FnvHash

extends Object
implements ConsistentHashingMasterSlaveStrategy.HashFunction
java.lang.Object
   ↳ org.apache.helix.controller.strategy.ConsistentHashingMasterSlaveStrategy.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
ConsistentHashingMasterSlaveStrategy.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.controller.strategy.ConsistentHashingMasterSlaveStrategy.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 ConsistentHashingMasterSlaveStrategy.FnvHash ()

Public Methods

public int getHashValue (String key)

public int hash (byte[] key)

public long hash64 (long val)