Package io.prestosql.cost
Class CostComparator
- java.lang.Object
-
- io.prestosql.cost.CostComparator
-
public class CostComparator extends Object
-
-
Constructor Summary
Constructors Constructor Description CostComparator(double cpuWeight, double memoryWeight, double networkWeight)
CostComparator(FeaturesConfig featuresConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Session session, PlanCostEstimate left, PlanCostEstimate right)
com.google.common.collect.Ordering<PlanCostEstimate>
forSession(Session session)
-
-
-
Constructor Detail
-
CostComparator
@Inject public CostComparator(FeaturesConfig featuresConfig)
-
CostComparator
public CostComparator(double cpuWeight, double memoryWeight, double networkWeight)
-
-
Method Detail
-
forSession
public com.google.common.collect.Ordering<PlanCostEstimate> forSession(Session session)
-
compare
public int compare(Session session, PlanCostEstimate left, PlanCostEstimate right)
-
-