vishnu.model.algebra.optimizer.costs
Class AbstractCostEstimator
java.lang.Object
vishnu.model.algebra.optimizer.costs.AbstractCostEstimator
- All Implemented Interfaces:
- CostEstimator
- Direct Known Subclasses:
- HashIndexEqualtySelectionCostEstimator, NoIndexSortedDataSelectionCostEstimator, ScanSelectionCostEstimator
public abstract class AbstractCostEstimator
- extends java.lang.Object
- implements CostEstimator
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCostEstimator
public AbstractCostEstimator()
getDatabase
public Database getDatabase()
setDatabase
public void setDatabase(Database database)
- Specified by:
setDatabase
in interface CostEstimator
getRelation
public Relation getRelation()
setRelation
public void setRelation(Relation relation)
- Specified by:
setRelation
in interface CostEstimator
cost
public int cost()
- Specified by:
cost
in interface CostEstimator
innerImage
public int innerImage(java.lang.String attribute)
max
public int max(int a,
int b)
innerPages
protected int innerPages()
image
public int image(int column)
log2
public int log2(int v)
inputCost
public abstract int inputCost()
outputCost
public abstract int outputCost()