Class ConsistentHashBalancer

java.lang.Object
io.datarouter.client.hbase.balancer.BaseHBaseRegionBalancer
io.datarouter.client.hbase.balancer.imp.ConsistentHashBalancer
All Implemented Interfaces:
java.util.concurrent.Callable<java.util.Map<DrRegionInfo<?>,​org.apache.hadoop.hbase.ServerName>>

public class ConsistentHashBalancer
extends BaseHBaseRegionBalancer
  • Field Details

  • Constructor Details

  • Method Details

    • call

      public java.util.Map<DrRegionInfo<?>,​org.apache.hadoop.hbase.ServerName> call()
    • buildServerHashRing

      public static java.util.SortedMap<java.lang.Long,​org.apache.hadoop.hbase.ServerName> buildServerHashRing​(DrServerList servers, int numBucketsPerNode)
    • calcServerNameForItem

      public static org.apache.hadoop.hbase.ServerName calcServerNameForItem​(java.util.SortedMap<java.lang.Long,​org.apache.hadoop.hbase.ServerName> consistentHashRing, byte[] consistentHashInput)