com.senseidb.cluster.routing
Class MD5HashProvider
java.lang.Object
com.senseidb.cluster.routing.MD5HashProvider
- All Implemented Interfaces:
- HashProvider
public class MD5HashProvider
- extends Object
- implements HashProvider
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 |
MD5HashProvider
public MD5HashProvider()
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.