public interface RelOptCost
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString()
Forces implementations to override
Object.toString() and provide a
good cost rendering to use during tracing. |
double getRows()
RelNode.estimateRowCount(org.apache.calcite.rel.metadata.RelMetadataQuery)
)double getCpu()
double getIo()
boolean isInfinite()
boolean equals(RelOptCost cost)
cost
- another costboolean isEqWithEpsilon(RelOptCost cost)
cost
- another costboolean isLe(RelOptCost cost)
cost
- another costboolean isLt(RelOptCost cost)
cost
- another costRelOptCost plus(RelOptCost cost)
cost
- another costRelOptCost minus(RelOptCost cost)
cost
- another costRelOptCost multiplyBy(double factor)
factor
- scalar factordouble divideBy(RelOptCost cost)
divideBy is the inverse of multiplyBy(double)
. For any
finite, non-zero cost and factor f,
cost.divideBy(cost.multiplyBy(f))
yields 1 / f
.
cost
- Other costjava.lang.String toString()
Object.toString()
and provide a
good cost rendering to use during tracing.toString
in class java.lang.Object
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.