public class ComputationCostEstimator extends Object implements ICostEstimate
LOG
Constructor and Description |
---|
ComputationCostEstimator(int nRows,
int nCols,
double sparsity,
int scans,
int decompressions,
int overlappingDecompressions,
int leftMultiplictions,
int compressedMultiplication,
int rightMultiplications,
int dictioanaryOps,
boolean isDensifying) |
Modifier and Type | Method and Description |
---|---|
double |
getCostOfColumnGroup(CompressedSizeInfoColGroup g)
If the instruction does not care about the inter column group cost, such as in memory cost or in computation cost
of right or left matrix multiplication we simply estimate the cost of individual column groups.
|
double |
getUncompressedCost(CompressedSizeInfoColGroup g)
Calculate the cost of execution if uncompressed.
|
boolean |
isDense() |
boolean |
shouldAnalyze(CompressedSizeInfoColGroup g1,
CompressedSizeInfoColGroup g2)
Decide if the column groups should be analysed, or the worst case join should be expected.
|
String |
toString() |
public ComputationCostEstimator(int nRows, int nCols, double sparsity, int scans, int decompressions, int overlappingDecompressions, int leftMultiplictions, int compressedMultiplication, int rightMultiplications, int dictioanaryOps, boolean isDensifying)
public double getUncompressedCost(CompressedSizeInfoColGroup g)
ICostEstimate
getUncompressedCost
in interface ICostEstimate
g
- A potential column group to compare to.public double getCostOfColumnGroup(CompressedSizeInfoColGroup g)
ICostEstimate
getCostOfColumnGroup
in interface ICostEstimate
g
- Column group to estimate the cost ofpublic boolean shouldAnalyze(CompressedSizeInfoColGroup g1, CompressedSizeInfoColGroup g2)
ICostEstimate
shouldAnalyze
in interface ICostEstimate
g1
- Group 1g2
- Group 2public boolean isDense()
Copyright © 2021 The Apache Software Foundation. All rights reserved.