Class ServerLocalityCostFunction
java.lang.Object
org.apache.hadoop.hbase.master.balancer.CostFunction
org.apache.hadoop.hbase.master.balancer.LocalityBasedCostFunction
org.apache.hadoop.hbase.master.balancer.ServerLocalityCostFunction
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.master.balancer.CostFunction
cluster, COST_EPSILON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) int
regionIndexToEntityIndex
(int region) Maps region to the current entity (server or rack) on which it is storedMethods inherited from class org.apache.hadoop.hbase.master.balancer.LocalityBasedCostFunction
cost, prepare, regionMoved, updateWeight
Methods inherited from class org.apache.hadoop.hbase.master.balancer.CostFunction
getMultiplier, isNeeded, postAction, scale, setMultiplier
-
Field Details
-
LOCALITY_COST_KEY
- See Also:
-
DEFAULT_LOCALITY_COST
- See Also:
-
-
Constructor Details
-
ServerLocalityCostFunction
ServerLocalityCostFunction(org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
regionIndexToEntityIndex
Description copied from class:LocalityBasedCostFunction
Maps region to the current entity (server or rack) on which it is stored- Specified by:
regionIndexToEntityIndex
in classLocalityBasedCostFunction
-