@InterfaceAudience.Private class RackLocalityCostFunction extends LocalityBasedCostFunction
Modifier and Type | Field and Description |
---|---|
private static float |
DEFAULT_RACK_LOCALITY_COST |
private static String |
RACK_LOCALITY_COST_KEY |
cluster, COST_EPSILON
Constructor and Description |
---|
RackLocalityCostFunction(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
regionIndexToEntityIndex(int region)
Maps region to the current entity (server or rack) on which it is stored
|
cost, prepare, regionMoved, updateWeight
getMultiplier, isNeeded, postAction, scale, setMultiplier
private static final String RACK_LOCALITY_COST_KEY
private static final float DEFAULT_RACK_LOCALITY_COST
public RackLocalityCostFunction(org.apache.hadoop.conf.Configuration conf)
int regionIndexToEntityIndex(int region)
LocalityBasedCostFunction
regionIndexToEntityIndex
in class LocalityBasedCostFunction
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.