Package io.prestosql.cost
Class LocalCostEstimate
- java.lang.Object
-
- io.prestosql.cost.LocalCostEstimate
-
public class LocalCostEstimate extends Object
Represents inherent cost of some plan node, not including cost of its sources.
-
-
Constructor Summary
Constructors Constructor Description LocalCostEstimate(double cpuCost, double maxMemory, double networkCost)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LocalCostEstimate
addPartialComponents(LocalCostEstimate one, LocalCostEstimate two, LocalCostEstimate... more)
Sums partial cost estimates of some (single) plan node.boolean
equals(Object o)
double
getCpuCost()
double
getMaxMemory()
double
getNetworkCost()
int
hashCode()
static LocalCostEstimate
of(double cpuCost, double maxMemory, double networkCost)
static LocalCostEstimate
ofCpu(double cpuCost)
static LocalCostEstimate
ofNetwork(double networkCost)
PlanCostEstimate
toPlanCost()
Deprecated.This class represents individual cost of a part of a plan (usually of a singlePlanNode
).String
toString()
static LocalCostEstimate
unknown()
static LocalCostEstimate
zero()
-
-
-
Method Detail
-
unknown
public static LocalCostEstimate unknown()
-
zero
public static LocalCostEstimate zero()
-
ofCpu
public static LocalCostEstimate ofCpu(double cpuCost)
-
ofNetwork
public static LocalCostEstimate ofNetwork(double networkCost)
-
of
public static LocalCostEstimate of(double cpuCost, double maxMemory, double networkCost)
-
getCpuCost
public double getCpuCost()
-
getMaxMemory
public double getMaxMemory()
-
getNetworkCost
public double getNetworkCost()
-
toPlanCost
@Deprecated public PlanCostEstimate toPlanCost()
Deprecated.This class represents individual cost of a part of a plan (usually of a singlePlanNode
). UseCostProvider
instead.
-
addPartialComponents
public static LocalCostEstimate addPartialComponents(LocalCostEstimate one, LocalCostEstimate two, LocalCostEstimate... more)
Sums partial cost estimates of some (single) plan node.
-
-