Package io.trino.cost
Class CostComparator
java.lang.Object
io.trino.cost.CostComparator
-
Constructor Summary
ConstructorsConstructorDescriptionCostComparator(double cpuWeight, double memoryWeight, double networkWeight) CostComparator(OptimizerConfig featuresConfig) -
Method Summary
Modifier and TypeMethodDescriptionintcompare(Session session, PlanCostEstimate left, PlanCostEstimate right) com.google.common.collect.Ordering<PlanCostEstimate> forSession(Session session)
-
Constructor Details
-
CostComparator
-
CostComparator
public CostComparator(double cpuWeight, double memoryWeight, double networkWeight)
-
-
Method Details
-
forSession
-
compare
-