Class CostEstimator

  • Direct Known Subclasses:
    CostEstimatorHops, CostEstimatorRuntime

    public abstract class CostEstimator
    extends Object
    Base class for all potential cost estimators TODO account for shared read-only matrices when computing aggregated stats
    • Constructor Detail

      • CostEstimator

        public CostEstimator()
    • Method Detail

      • getLeafNodeEstimate

        public abstract double getLeafNodeEstimate​(CostEstimator.TestMeasure measure,
                                                   OptNode node)
        Main leaf node estimation method - to be overwritten by specific cost estimators
        Parameters:
        measure - ?
        node - internal representation of a plan alternative for program blocks and instructions
        Returns:
        estimate?
      • getLeafNodeEstimate

        public abstract double getLeafNodeEstimate​(CostEstimator.TestMeasure measure,
                                                   OptNode node,
                                                   Types.ExecType et)
        Main leaf node estimation method - to be overwritten by specific cost estimators
        Parameters:
        measure - ?
        node - internal representation of a plan alternative for program blocks and instructions
        et - forced execution type for leaf node
        Returns:
        estimate?
      • getEstimate

        public double getEstimate​(CostEstimator.TestMeasure measure,
                                  OptNode node)
        Main estimation method.
        Parameters:
        measure - ?
        node - internal representation of a plan alternative for program blocks and instructions
        Returns:
        estimate?
      • getEstimate

        public double getEstimate​(CostEstimator.TestMeasure measure,
                                  OptNode node,
                                  Types.ExecType et)
        Main estimation method.
        Parameters:
        measure - estimate type (time or memory)
        node - plan opt tree node
        et - execution type
        Returns:
        estimate