Class HybridCostEstimator
- java.lang.Object
 - 
- org.apache.sysds.runtime.compress.cost.ACostEstimate
 - 
- org.apache.sysds.runtime.compress.cost.HybridCostEstimator
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public class HybridCostEstimator extends ACostEstimate
- See Also:
 - Serialized Form
 
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetCost(AColGroup cg, int nRows)Get the cost of a compressed columnGroup.doublegetCost(MatrixBlock mb)Get the cost of a matrix block.booleanshouldSparsify()Ask the cost estimator if it is a good idea to try to sparsify a column group. 
 - 
 
- 
- 
Method Detail
- 
getCost
public double getCost(MatrixBlock mb)
Description copied from class:ACostEstimateGet the cost of a matrix block.- Specified by:
 getCostin classACostEstimate- Parameters:
 mb- A MatrixBlock- Returns:
 - The cost subject to the internal cost functions
 
 
- 
getCost
public double getCost(AColGroup cg, int nRows)
Description copied from class:ACostEstimateGet the cost of a compressed columnGroup.- Specified by:
 getCostin classACostEstimate- Parameters:
 cg- A ColumnGroupnRows- The number of rows in the column group- Returns:
 - The cost subject to the internal cost functions
 
 
- 
shouldSparsify
public boolean shouldSparsify()
Description copied from class:ACostEstimateAsk the cost estimator if it is a good idea to try to sparsify a column group. It is the same as asking if it is a good idea to make FOR on top of the column group.- Specified by:
 shouldSparsifyin classACostEstimate- Returns:
 - true if yes
 
 
 - 
 
 -