public class HybridCostEstimator extends Object implements ICostEstimate
LOG, serialVersionUID
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 |
shouldAnalyze(CompressedSizeInfoColGroup g1,
CompressedSizeInfoColGroup g2)
Decide if the column groups should be analysed, or the worst case join should be expected.
|
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 2Copyright © 2021 The Apache Software Foundation. All rights reserved.