vishnu.model.algebra.optimizer.costs
Class AbstractCostEstimator

java.lang.Object
  extended by 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

 

Constructor Summary
AbstractCostEstimator()
           
 
Method Summary
 int cost()
           
 Database getDatabase()
           
 Relation getRelation()
           
 int image(int column)
           
 int innerImage(java.lang.String attribute)
           
protected  int innerPages()
           
abstract  int inputCost()
           
 int log2(int v)
           
 int max(int a, int b)
           
abstract  int outputCost()
           
 void setDatabase(Database database)
           
 void setRelation(Relation relation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCostEstimator

public AbstractCostEstimator()
Method Detail

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()