Uses of Enum Class
org.apache.hadoop.hbase.master.balancer.BalancerClusterState.LocalityType
-
Uses of BalancerClusterState.LocalityType in org.apache.hadoop.hbase.master.balancer
Modifier and TypeFieldDescriptionprivate final BalancerClusterState.LocalityType
LocalityBasedCostFunction.type
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BalancerClusterState.LocalityType[]
BalancerClusterState.LocalityType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionfloat
BalancerClusterState.getOrComputeLocality
(int region, int entity, BalancerClusterState.LocalityType type) Looks up locality from cache of localities.int[]
BalancerClusterState.getOrComputeRegionsToMostLocalEntities
(BalancerClusterState.LocalityType type) Lazily initializes and retrieves a mapping of region -> server for which region has the highest the localitydouble
BalancerClusterState.getOrComputeWeightedLocality
(int region, int server, BalancerClusterState.LocalityType type) Returns locality weighted by region size in MB.ModifierConstructorDescription(package private)
LocalityBasedCostFunction
(org.apache.hadoop.conf.Configuration conf, BalancerClusterState.LocalityType type, String localityCostKey, float defaultLocalityCost)