Uses of Enum Class
org.apache.hadoop.hbase.master.balancer.BalancerClusterState.LocalityType
Packages that use BalancerClusterState.LocalityType
-
Uses of BalancerClusterState.LocalityType in org.apache.hadoop.hbase.master.balancer
Fields in org.apache.hadoop.hbase.master.balancer declared as BalancerClusterState.LocalityTypeModifier and TypeFieldDescriptionprivate final BalancerClusterState.LocalityType
LocalityBasedCostFunction.type
Methods in org.apache.hadoop.hbase.master.balancer that return BalancerClusterState.LocalityTypeModifier 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.Methods in org.apache.hadoop.hbase.master.balancer with parameters of type BalancerClusterState.LocalityTypeModifier 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.Constructors in org.apache.hadoop.hbase.master.balancer with parameters of type BalancerClusterState.LocalityTypeModifierConstructorDescription(package private)
LocalityBasedCostFunction
(org.apache.hadoop.conf.Configuration conf, BalancerClusterState.LocalityType type, String localityCostKey, float defaultLocalityCost)