saffron.opt
Class VolcanoCost

java.lang.Object
  |
  +--saffron.opt.VolcanoCost
All Implemented Interfaces:
Cost

class VolcanoCost
extends Object
implements Cost

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(Cost _that)
           
 double getCpu()
           
 double getIo()
           
 double getRows()
           
 boolean isInfinite()
           
 boolean isLe(Cost _that)
           
 boolean isLt(Cost _that)
           
 Cost minus(Cost _that)
           
 Cost multiplyBy(double factor)
           
 Cost plus(Cost _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

dRows

double dRows

dCpu

double dCpu

dIo

double dIo
Constructor Detail

VolcanoCost

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

multiplyBy

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

minus

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

plus

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

equals

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

isLe

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

isLt

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

isInfinite

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

toString

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

getRows

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

getCpu

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

getIo

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

set

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

SourceForge.net_Logo