Package io.trino.cost
Class LocalCostEstimate
java.lang.Object
io.trino.cost.LocalCostEstimate
Represents inherent cost of some plan node, not including cost of its sources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalCostEstimateaddPartialComponents(LocalCostEstimate one, LocalCostEstimate two, LocalCostEstimate... more) Sums partial cost estimates of some (single) plan node.booleandoubledoubledoubleinthashCode()static LocalCostEstimateof(double cpuCost, double maxMemory, double networkCost) static LocalCostEstimateofCpu(double cpuCost) static LocalCostEstimateofNetwork(double networkCost) Deprecated.toString()static LocalCostEstimateunknown()static LocalCostEstimatezero()
-
Constructor Details
-
LocalCostEstimate
public LocalCostEstimate(double cpuCost, double maxMemory, double networkCost)
-
-
Method Details
-
unknown
-
zero
-
ofCpu
-
ofNetwork
-
of
-
getCpuCost
public double getCpuCost() -
getMaxMemory
public double getMaxMemory() -
getNetworkCost
public double getNetworkCost() -
toPlanCost
Deprecated.This class represents individual cost of a part of a plan (usually of a singlePlanNode). UseCostProviderinstead. -
toString
-
equals
-
hashCode
public int hashCode() -
addPartialComponents
public static LocalCostEstimate addPartialComponents(LocalCostEstimate one, LocalCostEstimate two, LocalCostEstimate... more) Sums partial cost estimates of some (single) plan node.
-
PlanNode).