Class CostEstimator
- java.lang.Object
- 
- org.apache.sysds.runtime.controlprogram.parfor.opt.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
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCostEstimator.DataFormatstatic classCostEstimator.ExcludeTypestatic classCostEstimator.TestMeasure
 - 
Field SummaryFields Modifier and Type Field Description static doubleDEFAULT_EST_PARALLELISMstatic doubleDEFAULT_MEM_ESTIMATE_CPstatic doubleDEFAULT_MEM_ESTIMATE_SPstatic doubleDEFAULT_TIME_ESTIMATEstatic longFACTOR_NUM_ITERATIONS
 - 
Constructor SummaryConstructors Constructor Description CostEstimator()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description doublegetEstimate(CostEstimator.TestMeasure measure, OptNode node)Main estimation method.doublegetEstimate(CostEstimator.TestMeasure measure, OptNode node, boolean inclCondPart)doublegetEstimate(CostEstimator.TestMeasure measure, OptNode node, boolean inclCondPart, Collection<String> vars, CostEstimator.ExcludeType extype)doublegetEstimate(CostEstimator.TestMeasure measure, OptNode node, Types.ExecType et)Main estimation method.abstract doublegetLeafNodeEstimate(CostEstimator.TestMeasure measure, OptNode node)Main leaf node estimation method - to be overwritten by specific cost estimatorsabstract doublegetLeafNodeEstimate(CostEstimator.TestMeasure measure, OptNode node, Types.ExecType et)Main leaf node estimation method - to be overwritten by specific cost estimators
 
- 
- 
- 
Field Detail- 
DEFAULT_EST_PARALLELISMpublic static final double DEFAULT_EST_PARALLELISM - See Also:
- Constant Field Values
 
 - 
FACTOR_NUM_ITERATIONSpublic static final long FACTOR_NUM_ITERATIONS - See Also:
- Constant Field Values
 
 - 
DEFAULT_TIME_ESTIMATEpublic static final double DEFAULT_TIME_ESTIMATE - See Also:
- Constant Field Values
 
 - 
DEFAULT_MEM_ESTIMATE_CPpublic static final double DEFAULT_MEM_ESTIMATE_CP - See Also:
- Constant Field Values
 
 - 
DEFAULT_MEM_ESTIMATE_SPpublic static final double DEFAULT_MEM_ESTIMATE_SP - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getLeafNodeEstimatepublic 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?
 
 - 
getLeafNodeEstimatepublic 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?
 
 - 
getEstimatepublic 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?
 
 - 
getEstimatepublic double getEstimate(CostEstimator.TestMeasure measure, OptNode node, boolean inclCondPart) 
 - 
getEstimatepublic double getEstimate(CostEstimator.TestMeasure measure, OptNode node, boolean inclCondPart, Collection<String> vars, CostEstimator.ExcludeType extype) 
 - 
getEstimatepublic 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
 
 
- 
 
-