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.
|
Constructor Summary |
(package private) |
VolcanoCost(double dRows,
double dCpu,
double dIo)
|
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
VolcanoCost
VolcanoCost(double dRows,
double dCpu,
double dIo)
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