Package | Description |
---|---|
org.apache.hadoop.hbase.master.balancer |
Modifier and Type | Field and Description |
---|---|
private BaseLoadBalancer.Cluster.LocalityType |
StochasticLoadBalancer.LocalityBasedCostFunction.type |
Modifier and Type | Method and Description |
---|---|
static BaseLoadBalancer.Cluster.LocalityType |
BaseLoadBalancer.Cluster.LocalityType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseLoadBalancer.Cluster.LocalityType[] |
BaseLoadBalancer.Cluster.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 |
BaseLoadBalancer.Cluster.getOrComputeLocality(int region,
int entity,
BaseLoadBalancer.Cluster.LocalityType type)
Looks up locality from cache of localities.
|
int[] |
BaseLoadBalancer.Cluster.getOrComputeRegionsToMostLocalEntities(BaseLoadBalancer.Cluster.LocalityType type)
Lazily initializes and retrieves a mapping of region -> server for which region has
the highest the locality
|
double |
BaseLoadBalancer.Cluster.getOrComputeWeightedLocality(int region,
int server,
BaseLoadBalancer.Cluster.LocalityType type)
Returns locality weighted by region size in MB.
|
Constructor and Description |
---|
LocalityBasedCostFunction(org.apache.hadoop.conf.Configuration conf,
MasterServices srv,
BaseLoadBalancer.Cluster.LocalityType type,
String localityCostKey,
float defaultLocalityCost) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.