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()
Returns usage of CPU resources.
|
double |
getIo()
Returns usage of I/O resources.
|
double |
getRows()
Returns the number of rows processed; this should not be
confused with the row count produced by a relational expression
(
RelNode.estimateRowCount(org.apache.calcite.rel.metadata.RelMetadataQuery)). |
boolean |
isEqWithEpsilon(RelOptCost cost)
Compares this to another cost, allowing for slight roundoff errors.
|
boolean |
isInfinite()
Returns whether this cost represents an expression that hasn't actually
been implemented (e.g.
|
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. |
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 costString toString()
Object.toString() and provide a
good cost rendering to use during tracing.Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.