Class CostEstimationUtils
java.lang.Object
se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.utils.CostEstimationUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Double[]getEstimates(CostModel costModel, QueryProcContext ctx, List<PhysicalPlan> plans) Initiates the cost estimation processes for all the plans in the given list and, afterwards, waits for the resulting estimates and returns them.static Double[]getEstimates(CostModel costModel, QueryProcContext ctx, PhysicalPlan... plans) Initiates the cost estimation processes for all the given plans and, afterwards, waits for the resulting estimates and returns them.
-
Constructor Details
-
CostEstimationUtils
public CostEstimationUtils()
-
-
Method Details
-
getEstimates
public static Double[] getEstimates(CostModel costModel, QueryProcContext ctx, PhysicalPlan... plans) throws CostEstimationException Initiates the cost estimation processes for all the given plans and, afterwards, waits for the resulting estimates and returns them. The returned array contains as many values as plans are given to this function, where the i-th value is for the i-th plan that is given.- Throws:
CostEstimationException
-
getEstimates
public static Double[] getEstimates(CostModel costModel, QueryProcContext ctx, List<PhysicalPlan> plans) throws CostEstimationException Initiates the cost estimation processes for all the plans in the given list and, afterwards, waits for the resulting estimates and returns them. The returned array contains as many values as there are plans in the given list, where the i-th value in the array is for the i-th plan in the given list.- Throws:
CostEstimationException
-