Package | Description |
---|---|
org.apache.hadoop.hbase.master.balancer |
Modifier and Type | Field and Description |
---|---|
private BalancerClusterState.LocalityType |
LocalityBasedCostFunction.type |
Modifier and Type | Method and Description |
---|---|
static BalancerClusterState.LocalityType |
BalancerClusterState.LocalityType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BalancerClusterState.LocalityType[] |
BalancerClusterState.LocalityType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
float |
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 locality
|
double |
BalancerClusterState.getOrComputeWeightedLocality(int region,
int server,
BalancerClusterState.LocalityType type)
Returns locality weighted by region size in MB.
|
Constructor and Description |
---|
LocalityBasedCostFunction(org.apache.hadoop.conf.Configuration conf,
BalancerClusterState.LocalityType type,
String localityCostKey,
float defaultLocalityCost) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.