Class ConsistentHashBalancer
java.lang.Object
io.datarouter.client.hbase.balancer.BaseHBaseRegionBalancer
io.datarouter.client.hbase.balancer.imp.ConsistentHashBalancer
- All Implemented Interfaces:
Callable<Map<DrRegionInfo<?>,org.apache.hadoop.hbase.ServerName>>
public class ConsistentHashBalancer extends BaseHBaseRegionBalancer
-
Field Summary
Fields Modifier and Type Field Description static IntegerBUCKETS_PER_NODEFields inherited from class io.datarouter.client.hbase.balancer.BaseHBaseRegionBalancer
drhRegionList, drhServerList, entityPartitioner, serverByRegion, tableName -
Constructor Summary
Constructors Constructor Description ConsistentHashBalancer(String tableName) -
Method Summary
Modifier and Type Method Description static SortedMap<Long,org.apache.hadoop.hbase.ServerName>buildServerHashRing(DrServerList servers, int numBucketsPerNode)static org.apache.hadoop.hbase.ServerNamecalcServerNameForItem(SortedMap<Long,org.apache.hadoop.hbase.ServerName> consistentHashRing, byte[] consistentHashInput)Map<DrRegionInfo<?>,org.apache.hadoop.hbase.ServerName>call()Methods inherited from class io.datarouter.client.hbase.balancer.BaseHBaseRegionBalancer
assertRegionCountsConsistent, getServerByRegionStringForDebug, init
-
Field Details
-
Constructor Details
-
Method Details
-
call
-
buildServerHashRing
public static SortedMap<Long,org.apache.hadoop.hbase.ServerName> buildServerHashRing(DrServerList servers, int numBucketsPerNode) -
calcServerNameForItem
-