CostEstimate, StoreCostResultclass CostEstimateImpl extends java.lang.Object implements CostEstimate
| Modifier and Type | Field | Description |
|---|---|---|
(package private) double |
cost |
|
(package private) double |
rowCount |
|
(package private) double |
singleScanRowCount |
| Constructor | Description |
|---|---|
CostEstimateImpl() |
|
CostEstimateImpl(double theCost,
double theRowCount,
double theSingleScanRowCount) |
| Modifier and Type | Method | Description |
|---|---|---|
CostEstimate |
add(CostEstimate other,
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.
|
double |
getEstimatedCost() |
Get the estimated cost.
|
long |
getEstimatedRowCount() |
Get the estimated row count.
|
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 |
setEstimatedCost(double cost) |
Set the estimated cost.
|
void |
setEstimatedRowCount(long count) |
Set the estimated row count.
|
void |
setSingleScanRowCount(double singleScanRowCount) |
Set the single scan row count.
|
(package private) CostEstimateImpl |
setState(double theCost,
double theRowCount,
CostEstimateImpl retval) |
|
double |
singleScanRowCount() |
Get the estimated number of rows returned by a single scan of
the ResultSet that this CostEstimate models.
|
java.lang.String |
toString() |
CostEstimateImpl()
CostEstimateImpl(double theCost,
double theRowCount,
double theSingleScanRowCount)
public void setCost(double cost,
double rowCount,
double singleScanRowCount)
CostEstimatesetCost in interface CostEstimateCostEstimate.setCost(double, double, double)public void setCost(CostEstimate other)
CostEstimatesetCost in interface CostEstimateCostEstimate.setCost(double, double, double)public void setSingleScanRowCount(double singleScanRowCount)
CostEstimatesetSingleScanRowCount in interface CostEstimateCostEstimate.setSingleScanRowCount(double)public double compare(CostEstimate other)
CostEstimatecompare in interface CostEstimateother - The cost estimate to compare this one withCostEstimate.compare(org.apache.derby.iapi.sql.compile.CostEstimate)public CostEstimate add(CostEstimate other, CostEstimate retval)
CostEstimateadd in interface CostEstimateother - This cost estimate to add this one to.retval - If non-null, put the result here.CostEstimate.add(org.apache.derby.iapi.sql.compile.CostEstimate, org.apache.derby.iapi.sql.compile.CostEstimate)public CostEstimate multiply(double multiplicand, CostEstimate retval)
CostEstimatemultiply in interface CostEstimatemultiplicand - The value to multiply this CostEstimate by.retval - If non-null, put the result here.CostEstimate.multiply(double, org.apache.derby.iapi.sql.compile.CostEstimate)public CostEstimate divide(double divisor, CostEstimate retval)
CostEstimatedivide in interface CostEstimatedivisor - The value to divide this CostEstimate by.retval - If non-null, put the result here.CostEstimate.divide(double, org.apache.derby.iapi.sql.compile.CostEstimate)public double rowCount()
CostEstimaterowCount in interface CostEstimateCostEstimate.rowCount()public double singleScanRowCount()
CostEstimatesingleScanRowCount in interface CostEstimateCostEstimate.singleScanRowCount()public CostEstimate cloneMe()
CostEstimatecloneMe in interface CostEstimateCostEstimate.cloneMe()public boolean isUninitialized()
CostEstimateisUninitialized in interface CostEstimateCostEstimate.isUninitialized()public double getEstimatedCost()
StoreCostResultgetEstimatedCost in interface StoreCostResultStoreCostResult.getEstimatedCost()public void setEstimatedCost(double cost)
StoreCostResultsetEstimatedCost in interface StoreCostResultStoreCostResult.setEstimatedCost(double)public long getEstimatedRowCount()
StoreCostResultgetEstimatedRowCount in interface StoreCostResultStoreCostResult.getEstimatedRowCount()public void setEstimatedRowCount(long count)
StoreCostResultsetEstimatedRowCount in interface StoreCostResultStoreCostResult.setEstimatedRowCount(long)CostEstimateImpl setState(double theCost, double theRowCount, CostEstimateImpl retval)
public java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.