|
|||||||||
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 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 with
CostEstimate.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)
public CostEstimateImpl setState(double theCost, double theRowCount, CostEstimateImpl retval)
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |