@InterfaceAudience.Private class TableSkewCostFunction extends CostFunction
Modifier and Type | Field and Description |
---|---|
(package private) DoubleArrayCost[] |
costsPerTable |
private static float |
DEFAULT_TABLE_SKEW_COST |
private static String |
TABLE_SKEW_COST_KEY |
cluster, COST_EPSILON
Constructor and Description |
---|
TableSkewCostFunction(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
protected double |
cost() |
(package private) void |
prepare(BalancerClusterState cluster)
Called once per LB invocation to give the cost function to initialize it's state, and perform
any costly calculation.
|
protected void |
regionMoved(int region,
int oldServer,
int newServer) |
getMultiplier, isNeeded, postAction, scale, setMultiplier, updateWeight
private static final String TABLE_SKEW_COST_KEY
private static final float DEFAULT_TABLE_SKEW_COST
DoubleArrayCost[] costsPerTable
TableSkewCostFunction(org.apache.hadoop.conf.Configuration conf)
void prepare(BalancerClusterState cluster)
CostFunction
prepare
in class CostFunction
protected void regionMoved(int region, int oldServer, int newServer)
regionMoved
in class CostFunction
protected double cost()
cost
in class CostFunction
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.