org.elasticsearch.cluster.routing.operation.hash.simple
Class SimpleHashFunction

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

public class SimpleHashFunction
extends Object
implements HashFunction


Constructor Summary
SimpleHashFunction()
           
 
Method Summary
 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

SimpleHashFunction

public SimpleHashFunction()
Method Detail

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.