public abstract class CostEstimator extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | CostEstimator.DataFormat | 
| static class  | CostEstimator.ExcludeType | 
| static class  | CostEstimator.TestMeasure | 
| Modifier and Type | Field and Description | 
|---|---|
| static double | DEFAULT_EST_PARALLELISM | 
| static double | DEFAULT_MEM_ESTIMATE_CP | 
| static double | DEFAULT_MEM_ESTIMATE_SP | 
| static double | DEFAULT_TIME_ESTIMATE | 
| static long | FACTOR_NUM_ITERATIONS | 
| Constructor and Description | 
|---|
| CostEstimator() | 
| Modifier and Type | Method and Description | 
|---|---|
| double | getEstimate(CostEstimator.TestMeasure measure,
           OptNode node)Main estimation method. | 
| double | getEstimate(CostEstimator.TestMeasure measure,
           OptNode node,
           boolean inclCondPart) | 
| double | getEstimate(CostEstimator.TestMeasure measure,
           OptNode node,
           boolean inclCondPart,
           Collection<String> vars,
           CostEstimator.ExcludeType extype) | 
| double | getEstimate(CostEstimator.TestMeasure measure,
           OptNode node,
           Types.ExecType et)Main estimation method. | 
| abstract double | getLeafNodeEstimate(CostEstimator.TestMeasure measure,
                   OptNode node)Main leaf node estimation method - to be overwritten by specific cost estimators | 
| abstract double | getLeafNodeEstimate(CostEstimator.TestMeasure measure,
                   OptNode node,
                   Types.ExecType et)Main leaf node estimation method - to be overwritten by specific cost estimators | 
public static final double DEFAULT_EST_PARALLELISM
public static final long FACTOR_NUM_ITERATIONS
public static final double DEFAULT_TIME_ESTIMATE
public static final double DEFAULT_MEM_ESTIMATE_CP
public static final double DEFAULT_MEM_ESTIMATE_SP
public abstract double getLeafNodeEstimate(CostEstimator.TestMeasure measure, OptNode node)
measure - ?node - internal representation of a plan alternative for program blocks and instructionspublic abstract double getLeafNodeEstimate(CostEstimator.TestMeasure measure, OptNode node, Types.ExecType et)
measure - ?node - internal representation of a plan alternative for program blocks and instructionset - forced execution type for leaf nodepublic double getEstimate(CostEstimator.TestMeasure measure, OptNode node)
measure - ?node - internal representation of a plan alternative for program blocks and instructionspublic double getEstimate(CostEstimator.TestMeasure measure, OptNode node, boolean inclCondPart)
public double getEstimate(CostEstimator.TestMeasure measure, OptNode node, boolean inclCondPart, Collection<String> vars, CostEstimator.ExcludeType extype)
public double getEstimate(CostEstimator.TestMeasure measure, OptNode node, Types.ExecType et)
measure - estimate type (time or memory)node - plan opt tree nodeet - execution typeCopyright © 2021 The Apache Software Foundation. All rights reserved.