Package io.trino.cost
Class LocalCostEstimate
- java.lang.Object
-
- io.trino.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 LocalCostEstimateaddPartialComponents(LocalCostEstimate one, LocalCostEstimate two, LocalCostEstimate... more)Sums partial cost estimates of some (single) plan node.booleanequals(Object o)doublegetCpuCost()doublegetMaxMemory()doublegetNetworkCost()inthashCode()static LocalCostEstimateof(double cpuCost, double maxMemory, double networkCost)static LocalCostEstimateofCpu(double cpuCost)static LocalCostEstimateofNetwork(double networkCost)PlanCostEstimatetoPlanCost()Deprecated.This class represents individual cost of a part of a plan (usually of a singlePlanNode).StringtoString()static LocalCostEstimateunknown()static LocalCostEstimatezero()
-
-
-
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). UseCostProviderinstead.
-
addPartialComponents
public static LocalCostEstimate addPartialComponents(LocalCostEstimate one, LocalCostEstimate two, LocalCostEstimate... more)
Sums partial cost estimates of some (single) plan node.
-
-