StoreCostResult
CostEstimateImpl
public interface CostEstimate extends StoreCostResult
Modifier and Type | Method | Description |
---|---|---|
CostEstimate |
add(CostEstimate addend,
CostEstimate retval) |
Add this cost estimate to another one.
|
CostEstimate |
cloneMe() |
Get a copy of this CostEstimate
|
double |
compare(CostEstimate other) |
Compare this cost estimate with the given cost estimate.
|
CostEstimate |
divide(double divisor,
CostEstimate retval) |
Divide this cost estimate by a scalar, non-dimensional number.
|
boolean |
isUninitialized() |
Return whether or not this CostEstimate is uninitialized.
|
CostEstimate |
multiply(double multiplicand,
CostEstimate retval) |
Multiply this cost estimate by a scalar, non-dimensional number.
|
double |
rowCount() |
Get the estimated number of rows returned by the ResultSet that this
CostEstimate models.
|
void |
setCost(double cost,
double rowCount,
double singleScanRowCount) |
Set the cost for this cost estimate.
|
void |
setCost(CostEstimate other) |
Copy the values from the given cost estimate into this one.
|
void |
setSingleScanRowCount(double singleRowScanCount) |
Set the single scan row count.
|
double |
singleScanRowCount() |
Get the estimated number of rows returned by a single scan of
the ResultSet that this CostEstimate models.
|
getEstimatedCost, getEstimatedRowCount, setEstimatedCost, setEstimatedRowCount
void setCost(double cost, double rowCount, double singleScanRowCount)
void setCost(CostEstimate other)
void setSingleScanRowCount(double singleRowScanCount)
double compare(CostEstimate other)
other
- The cost estimate to compare this one withCostEstimate add(CostEstimate addend, CostEstimate retval)
addend
- This cost estimate to add this one to.retval
- If non-null, put the result here.CostEstimate multiply(double multiplicand, CostEstimate retval)
multiplicand
- The value to multiply this CostEstimate by.retval
- If non-null, put the result here.CostEstimate divide(double divisor, CostEstimate retval)
divisor
- The value to divide this CostEstimate by.retval
- If non-null, put the result here.double rowCount()
double singleScanRowCount()
CostEstimate cloneMe()
boolean isUninitialized()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.