java.lang.Object
se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.utils.CostEstimationUtils

public class CostEstimationUtils extends Object
  • Constructor Details

    • CostEstimationUtils

      public CostEstimationUtils()
  • Method Details

    • getEstimates

      public static Double[] getEstimates(CostModel costModel, 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, 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