Class PhysicalPlanWithCostUtils
java.lang.Object
se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.utils.PhysicalPlanWithCostUtils
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic List<PhysicalPlanWithCost> annotatePlansWithCost(CostModel cost, List<PhysicalPlan> plans) static PhysicalPlanWithCostannotatePlanWithCost(CostModel cm, PhysicalPlan plan) static doublecalculateAvgCostOfPlans(List<PhysicalPlanWithCost> plansWithCost) static doublecalculateStDevCostOfPlans(List<PhysicalPlanWithCost> plansWithCost) static doublecalculateStDevCostOfPlans(List<PhysicalPlanWithCost> plansWithCost, double avgCost) static intcountNrOfPlansWithBestCost(List<PhysicalPlanWithCost> plansWithCost, double bestCost) static PhysicalPlanWithCostfindPlanWithHighestCost(List<PhysicalPlanWithCost> plansWithCost) static PhysicalPlanWithCostfindPlanWithLowestCost(List<PhysicalPlanWithCost> plansWithCost) static PhysicalPlanWithCostfindTopKPlanWithLowestCost(List<PhysicalPlanWithCost> plansWithCost, double p) slicePlans(List<T> plans, int batchSize)  
- 
Constructor Details
- 
PhysicalPlanWithCostUtils
public PhysicalPlanWithCostUtils() 
 - 
 - 
Method Details
- 
annotatePlanWithCost
public static PhysicalPlanWithCost annotatePlanWithCost(CostModel cm, PhysicalPlan plan) throws PhysicalOptimizationException - Throws:
 PhysicalOptimizationException
 - 
annotatePlansWithCost
public static List<PhysicalPlanWithCost> annotatePlansWithCost(CostModel cost, List<PhysicalPlan> plans) throws PhysicalOptimizationException - Throws:
 PhysicalOptimizationException
 - 
slicePlans
 - 
findPlanWithLowestCost
 - 
findPlanWithHighestCost
public static PhysicalPlanWithCost findPlanWithHighestCost(List<PhysicalPlanWithCost> plansWithCost)  - 
findTopKPlanWithLowestCost
public static PhysicalPlanWithCost findTopKPlanWithLowestCost(List<PhysicalPlanWithCost> plansWithCost, double p)  - 
calculateAvgCostOfPlans
 - 
calculateStDevCostOfPlans
 - 
calculateStDevCostOfPlans
public static double calculateStDevCostOfPlans(List<PhysicalPlanWithCost> plansWithCost, double avgCost)  - 
countNrOfPlansWithBestCost
public static int countNrOfPlansWithBestCost(List<PhysicalPlanWithCost> plansWithCost, double bestCost)  
 -