class CostEstimateImpl extends java.lang.Object implements CostEstimate
Modifier and Type | Field and Description |
---|---|
(package private) double |
cost |
(package private) double |
rowCount |
(package private) double |
singleScanRowCount |
Constructor and Description |
---|
CostEstimateImpl() |
CostEstimateImpl(double theCost,
double theRowCount,
double theSingleScanRowCount) |
Modifier and Type | Method and 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(CostEstimate other)
Copy the values from the given cost estimate into this one.
|
void |
setCost(double cost,
double rowCount,
double singleScanRowCount)
Set the cost for this cost estimate.
|
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)
CostEstimate
setCost
in interface CostEstimate
CostEstimate.setCost(double, double, double)
public void setCost(CostEstimate other)
CostEstimate
setCost
in interface CostEstimate
CostEstimate.setCost(double, double, double)
public void setSingleScanRowCount(double singleScanRowCount)
CostEstimate
setSingleScanRowCount
in interface CostEstimate
CostEstimate.setSingleScanRowCount(double)
public double compare(CostEstimate other)
CostEstimate
compare
in interface CostEstimate
other
- The cost estimate to compare this one withCostEstimate.compare(org.apache.derby.iapi.sql.compile.CostEstimate)
public CostEstimate add(CostEstimate other, CostEstimate retval)
CostEstimate
add
in interface CostEstimate
other
- 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)
CostEstimate
multiply
in interface CostEstimate
multiplicand
- 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)
CostEstimate
divide
in interface CostEstimate
divisor
- 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()
CostEstimate
rowCount
in interface CostEstimate
CostEstimate.rowCount()
public double singleScanRowCount()
CostEstimate
singleScanRowCount
in interface CostEstimate
CostEstimate.singleScanRowCount()
public CostEstimate cloneMe()
CostEstimate
cloneMe
in interface CostEstimate
CostEstimate.cloneMe()
public boolean isUninitialized()
CostEstimate
isUninitialized
in interface CostEstimate
CostEstimate.isUninitialized()
public double getEstimatedCost()
StoreCostResult
getEstimatedCost
in interface StoreCostResult
StoreCostResult.getEstimatedCost()
public void setEstimatedCost(double cost)
StoreCostResult
setEstimatedCost
in interface StoreCostResult
StoreCostResult.setEstimatedCost(double)
public long getEstimatedRowCount()
StoreCostResult
getEstimatedRowCount
in interface StoreCostResult
StoreCostResult.getEstimatedRowCount()
public void setEstimatedRowCount(long count)
StoreCostResult
setEstimatedRowCount
in interface StoreCostResult
StoreCostResult.setEstimatedRowCount(long)
CostEstimateImpl setState(double theCost, double theRowCount, CostEstimateImpl retval)
public java.lang.String toString()
toString
in class java.lang.Object
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.