|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.relopt.RelOptCostImpl
public class RelOptCostImpl
RelOptCostImpl provides a default implementation for the RelOptCost
interface. It it defined in terms of a single scalar quantity; somewhat
arbitrarily, it returns this scalar for rows processed and zero for both CPU
and I/O.
| Field Summary | |
|---|---|
private double |
value
|
| Constructor Summary | |
|---|---|
RelOptCostImpl(double value)
|
|
| Method Summary | |
|---|---|
double |
divideBy(RelOptCost cost)
Computes the ratio between this cost and another cost. |
boolean |
equals(RelOptCost other)
Compares this to another cost. |
double |
getCpu()
|
double |
getIo()
|
double |
getRows()
|
boolean |
isEqWithEpsilon(RelOptCost other)
Compares this to another cost, allowing for slight roundoff errors. |
boolean |
isInfinite()
|
boolean |
isLe(RelOptCost other)
Compares this to another cost. |
boolean |
isLt(RelOptCost other)
Compares this to another cost. |
RelOptCost |
minus(RelOptCost other)
Subtracts another cost from this. |
RelOptCost |
multiplyBy(double factor)
Multiplies this cost by a scalar factor. |
RelOptCost |
plus(RelOptCost other)
Adds another cost to this. |
String |
toString()
Forces implementations to override Object.toString() and provide a
good cost rendering to use during tracing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final double value
| Constructor Detail |
|---|
public RelOptCostImpl(double value)
| Method Detail |
|---|
public double getRows()
getRows in interface RelOptCostRelNode.getRows())public double getIo()
getIo in interface RelOptCostpublic double getCpu()
getCpu in interface RelOptCostpublic boolean isInfinite()
isInfinite in interface RelOptCostpublic boolean isLe(RelOptCost other)
RelOptCost
isLe in interface RelOptCostother - another cost
public boolean isLt(RelOptCost other)
RelOptCost
isLt in interface RelOptCostother - another cost
public boolean equals(RelOptCost other)
RelOptCost
equals in interface RelOptCostother - another cost
public boolean isEqWithEpsilon(RelOptCost other)
RelOptCost
isEqWithEpsilon in interface RelOptCostother - another cost
public RelOptCost minus(RelOptCost other)
RelOptCost
minus in interface RelOptCostother - another cost
public RelOptCost plus(RelOptCost other)
RelOptCost
plus in interface RelOptCostother - another cost
public RelOptCost multiplyBy(double factor)
RelOptCost
multiplyBy in interface RelOptCostfactor - scalar factor
public double divideBy(RelOptCost cost)
RelOptCostdivideBy is the inverse of RelOptCost.multiplyBy(double). For any
finite, non-zero cost and factor f,
cost.divideBy(cost.multiplyBy(f)) yields 1 / f.
divideBy in interface RelOptCostcost - Other cost
public String toString()
RelOptCostObject.toString() and provide a
good cost rendering to use during tracing.
toString in interface RelOptCosttoString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||