com.senseidb.cluster.routing
Class MD5HashProvider

java.lang.Object
  extended by com.senseidb.cluster.routing.MD5HashProvider
All Implemented Interfaces:
HashProvider

public class MD5HashProvider
extends Object
implements HashProvider


Constructor Summary
MD5HashProvider()
           
 
Method Summary
 long hash(String key)
          Hash the key into an integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD5HashProvider

public MD5HashProvider()
Method Detail

hash

public long hash(String key)
Hash the key into an integer.

Specified by:
hash in interface HashProvider
Parameters:
key - the key to be hashed
Returns:
the hash code of the key


Copyright © 2010-2012. All Rights Reserved.