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.

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, nonzero 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 © 20122020 Apache Software Foundation. All Rights Reserved.