|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.compile.CostEstimateImpl
public class CostEstimateImpl
| Field Summary | |
|---|---|
double |
cost
|
double |
rowCount
|
double |
singleScanRowCount
|
| Constructor Summary | |
|---|---|
CostEstimateImpl()
|
|
CostEstimateImpl(double theCost,
double theRowCount,
double theSingleScanRowCount)
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double cost
public double rowCount
public double singleScanRowCount
| Constructor Detail |
|---|
public CostEstimateImpl()
public CostEstimateImpl(double theCost,
double theRowCount,
double theSingleScanRowCount)
| Method Detail |
|---|
public void setCost(double cost,
double rowCount,
double singleScanRowCount)
CostEstimate
setCost in interface CostEstimateCostEstimate.setCost(double, double, double)public void setCost(CostEstimate other)
CostEstimate
setCost in interface CostEstimateCostEstimate.setCost(double, double, double)public void setSingleScanRowCount(double singleScanRowCount)
CostEstimate
setSingleScanRowCount in interface CostEstimateCostEstimate.setSingleScanRowCount(double)public double compare(CostEstimate other)
CostEstimate
compare in interface CostEstimateother - The cost estimate to compare this one with
CostEstimate.compare(org.apache.derby.iapi.sql.compile.CostEstimate)
public CostEstimate add(CostEstimate other,
CostEstimate retval)
CostEstimate
add 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)
CostEstimate
multiply 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)
CostEstimate
divide 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()
CostEstimate
rowCount in interface CostEstimateCostEstimate.rowCount()public double singleScanRowCount()
CostEstimate
singleScanRowCount in interface CostEstimateCostEstimate.singleScanRowCount()public CostEstimate cloneMe()
CostEstimate
cloneMe in interface CostEstimateCostEstimate.cloneMe()public boolean isUninitialized()
CostEstimate
isUninitialized in interface CostEstimateCostEstimate.isUninitialized()public double getEstimatedCost()
StoreCostResult
getEstimatedCost in interface StoreCostResultStoreCostResult.getEstimatedCost()public void setEstimatedCost(double cost)
StoreCostResult
setEstimatedCost in interface StoreCostResultStoreCostResult.setEstimatedCost(double)public long getEstimatedRowCount()
StoreCostResult
getEstimatedRowCount in interface StoreCostResultStoreCostResult.getEstimatedRowCount()public void setEstimatedRowCount(long count)
StoreCostResult
setEstimatedRowCount in interface StoreCostResultStoreCostResult.setEstimatedRowCount(long)
public CostEstimateImpl setState(double theCost,
double theRowCount,
CostEstimateImpl retval)
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||