public class CostComparator extends Object
| Constructor and Description |
|---|
CostComparator(double cpuWeight,
double memoryWeight,
double networkWeight) |
CostComparator(FeaturesConfig featuresConfig) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Session session,
PlanCostEstimate left,
PlanCostEstimate right) |
com.google.common.collect.Ordering<PlanCostEstimate> |
forSession(Session session) |
@Inject public CostComparator(FeaturesConfig featuresConfig)
public CostComparator(double cpuWeight,
double memoryWeight,
double networkWeight)
public com.google.common.collect.Ordering<PlanCostEstimate> forSession(Session session)
public int compare(Session session, PlanCostEstimate left, PlanCostEstimate right)
Copyright © 2012–2019. All rights reserved.