org.elasticsearch.cluster.routing.operation.hash.djb
Class DjbHashFunction

java.lang.Object
  extended by org.elasticsearch.cluster.routing.operation.hash.djb.DjbHashFunction
All Implemented Interfaces:
HashFunction

public class DjbHashFunction
extends Object
implements HashFunction


Constructor Summary
DjbHashFunction()
           
 
Method Summary
static int DJB_HASH(String value)
           
 int hash(String routing)
           
 int hash(String type, String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DjbHashFunction

public DjbHashFunction()
Method Detail

DJB_HASH

public static int DJB_HASH(String value)

hash

public int hash(String routing)
Specified by:
hash in interface HashFunction

hash

public int hash(String type,
                String id)
Specified by:
hash in interface HashFunction


Copyright © 2009-2012. All Rights Reserved.