net.sf.saffron.opt
Class VolcanoCost

java.lang.Object
  |
  +--net.sf.saffron.opt.VolcanoCost
All Implemented Interfaces:
PlanCost

class VolcanoCost
extends Object
implements PlanCost

VolcanoCost represents the cost of a plan node.

This class is immutable: none of the methods (besides set(double, double, double)) modifies any member variables.


Field Summary
(package private)  double dCpu
           
(package private)  double dIo
           
(package private)  double dRows
           
(package private) static VolcanoCost HUGE
           
(package private) static VolcanoCost INFINITY
           
(package private) static VolcanoCost TINY
           
(package private) static VolcanoCost ZERO
           
 
Constructor Summary
(package private) VolcanoCost(double dRows, double dCpu, double dIo)
           
 
Method Summary
 boolean equals(PlanCost _that)
           
 double getCpu()
           
 double getIo()
           
 double getRows()
           
 boolean isInfinite()
           
 boolean isLe(PlanCost _that)
           
 boolean isLt(PlanCost _that)
           
 PlanCost minus(PlanCost _that)
           
 PlanCost multiplyBy(double factor)
           
 PlanCost plus(PlanCost _that)
           
 void set(double dRows, double dCpu, double dIo)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INFINITY

static final VolcanoCost INFINITY

HUGE

static final VolcanoCost HUGE

ZERO

static final VolcanoCost ZERO

TINY

static final VolcanoCost TINY

dCpu

double dCpu

dIo

double dIo

dRows

double dRows
Constructor Detail

VolcanoCost

VolcanoCost(double dRows,
            double dCpu,
            double dIo)
Method Detail

getCpu

public double getCpu()
Specified by:
getCpu in interface PlanCost

isInfinite

public boolean isInfinite()
Specified by:
isInfinite in interface PlanCost

getIo

public double getIo()
Specified by:
getIo in interface PlanCost

isLe

public boolean isLe(PlanCost _that)
Specified by:
isLe in interface PlanCost

isLt

public boolean isLt(PlanCost _that)
Specified by:
isLt in interface PlanCost

getRows

public double getRows()
Specified by:
getRows in interface PlanCost

equals

public boolean equals(PlanCost _that)
Specified by:
equals in interface PlanCost

minus

public PlanCost minus(PlanCost _that)
Specified by:
minus in interface PlanCost

multiplyBy

public PlanCost multiplyBy(double factor)
Specified by:
multiplyBy in interface PlanCost

plus

public PlanCost plus(PlanCost _that)
Specified by:
plus in interface PlanCost

set

public void set(double dRows,
                double dCpu,
                double dIo)

toString

public String toString()
Specified by:
toString in interface PlanCost
Overrides:
toString in class Object

SourceForge.net_Logo