|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.test.MockRelOptCost
public class MockRelOptCost
MockRelOptCost is a mock implementation of the RelOptCost interface.
TODO: constructors for various scenarios
| Constructor Summary | |
|---|---|
MockRelOptCost()
|
|
| Method Summary | |
|---|---|
double |
divideBy(RelOptCost cost)
Computes the ratio between this cost and another cost. |
boolean |
equals(RelOptCost cost)
Compares this to another cost. |
double |
getCpu()
|
double |
getIo()
|
double |
getRows()
|
boolean |
isEqWithEpsilon(RelOptCost cost)
Compares this to another cost, allowing for slight roundoff errors. |
boolean |
isInfinite()
|
boolean |
isLe(RelOptCost cost)
Compares this to another cost. |
boolean |
isLt(RelOptCost cost)
Compares this to another cost. |
RelOptCost |
minus(RelOptCost cost)
Subtracts another cost from this. |
RelOptCost |
multiplyBy(double factor)
Multiplies this cost by a scalar factor. |
RelOptCost |
plus(RelOptCost cost)
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 |
| Constructor Detail |
|---|
public MockRelOptCost()
| Method Detail |
|---|
public double getCpu()
getCpu in interface RelOptCostpublic boolean isInfinite()
isInfinite in interface RelOptCostpublic double getIo()
getIo in interface RelOptCostpublic boolean isLe(RelOptCost cost)
RelOptCost
isLe in interface RelOptCostcost - another cost
public boolean isLt(RelOptCost cost)
RelOptCost
isLt in interface RelOptCostcost - another cost
public double getRows()
getRows in interface RelOptCostRelNode.getRows())public boolean equals(RelOptCost cost)
RelOptCost
equals in interface RelOptCostcost - another cost
public boolean isEqWithEpsilon(RelOptCost cost)
RelOptCost
isEqWithEpsilon in interface RelOptCostcost - another cost
public RelOptCost minus(RelOptCost cost)
RelOptCost
minus in interface RelOptCostcost - 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 RelOptCost plus(RelOptCost cost)
RelOptCost
plus in interface RelOptCostcost - another 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 | ||||||||