|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> sql >> [ compile overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.impl.sql.compile
Class CostEstimateImpl

java.lang.Objectorg.apache.derby.impl.sql.compile.CostEstimateImpl
- All Implemented Interfaces:
- org.apache.derby.iapi.sql.compile.CostEstimate, org.apache.derby.iapi.store.access.StoreCostResult
- Direct Known Subclasses:
- Level2CostEstimateImpl
- public class CostEstimateImpl
- extends java.lang.Object
- implements org.apache.derby.iapi.sql.compile.CostEstimate
- extends java.lang.Object
| Field Summary | |
double |
cost
|
double |
rowCount
|
double |
singleScanRowCount
|
| Constructor Summary | |
CostEstimateImpl()
|
|
CostEstimateImpl(double theCost,
double theRowCount,
double theSingleScanRowCount)
|
|
| Method Summary | |
org.apache.derby.iapi.sql.compile.CostEstimate |
add(org.apache.derby.iapi.sql.compile.CostEstimate other,
org.apache.derby.iapi.sql.compile.CostEstimate retval)
Add this cost estimate to another one. |
org.apache.derby.iapi.sql.compile.CostEstimate |
cloneMe()
Get a copy of this CostEstimate |
double |
compare(org.apache.derby.iapi.sql.compile.CostEstimate other)
Compare this cost estimate with the given cost estimate. |
org.apache.derby.iapi.sql.compile.CostEstimate |
divide(double divisor,
org.apache.derby.iapi.sql.compile.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. |
org.apache.derby.iapi.sql.compile.CostEstimate |
multiply(double multiplicand,
org.apache.derby.iapi.sql.compile.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(org.apache.derby.iapi.sql.compile.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 |
cost
public double cost
rowCount
public double rowCount
singleScanRowCount
public double singleScanRowCount
| Constructor Detail |
CostEstimateImpl
public CostEstimateImpl()
CostEstimateImpl
public CostEstimateImpl(double theCost,
double theRowCount,
double theSingleScanRowCount)
| Method Detail |
setCost
public void setCost(double cost,
double rowCount,
double singleScanRowCount)
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Set the cost for this cost estimate.
- Specified by:
setCostin interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
setCost
public void setCost(org.apache.derby.iapi.sql.compile.CostEstimate other)
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Copy the values from the given cost estimate into this one.
- Specified by:
setCostin interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
setSingleScanRowCount
public void setSingleScanRowCount(double singleScanRowCount)
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Set the single scan row count.
- Specified by:
setSingleScanRowCountin interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
compare
public double compare(org.apache.derby.iapi.sql.compile.CostEstimate other)
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Compare this cost estimate with the given cost estimate.
- Specified by:
comparein interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
add
public org.apache.derby.iapi.sql.compile.CostEstimate add(org.apache.derby.iapi.sql.compile.CostEstimate other, org.apache.derby.iapi.sql.compile.CostEstimate retval)
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Add this cost estimate to another one. This presumes that any row
ordering is destroyed.
- Specified by:
addin interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
multiply
public org.apache.derby.iapi.sql.compile.CostEstimate multiply(double multiplicand, org.apache.derby.iapi.sql.compile.CostEstimate retval)
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Multiply this cost estimate by a scalar, non-dimensional number. This
presumes that any row ordering is destroyed.
- Specified by:
multiplyin interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
divide
public org.apache.derby.iapi.sql.compile.CostEstimate divide(double divisor, org.apache.derby.iapi.sql.compile.CostEstimate retval)
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Divide this cost estimate by a scalar, non-dimensional number.
- Specified by:
dividein interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
rowCount
public double rowCount()
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Get the estimated number of rows returned by the ResultSet that this
CostEstimate models.
- Specified by:
rowCountin interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
singleScanRowCount
public double singleScanRowCount()
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Get the estimated number of rows returned by a single scan of
the ResultSet that this CostEstimate models.
- Specified by:
singleScanRowCountin interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
cloneMe
public org.apache.derby.iapi.sql.compile.CostEstimate cloneMe()
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Get a copy of this CostEstimate
- Specified by:
cloneMein interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
isUninitialized
public boolean isUninitialized()
- Description copied from interface:
org.apache.derby.iapi.sql.compile.CostEstimate - Return whether or not this CostEstimate is uninitialized.
- Specified by:
isUninitializedin interfaceorg.apache.derby.iapi.sql.compile.CostEstimate
getEstimatedCost
public double getEstimatedCost()
- Description copied from interface:
org.apache.derby.iapi.store.access.StoreCostResult - Get the estimated cost.
- Specified by:
getEstimatedCostin interfaceorg.apache.derby.iapi.store.access.StoreCostResult
setEstimatedCost
public void setEstimatedCost(double cost)
- Description copied from interface:
org.apache.derby.iapi.store.access.StoreCostResult - Set the estimated cost.
- Specified by:
setEstimatedCostin interfaceorg.apache.derby.iapi.store.access.StoreCostResult
getEstimatedRowCount
public long getEstimatedRowCount()
- Description copied from interface:
org.apache.derby.iapi.store.access.StoreCostResult - Get the estimated row count.
- Specified by:
getEstimatedRowCountin interfaceorg.apache.derby.iapi.store.access.StoreCostResult
setEstimatedRowCount
public void setEstimatedRowCount(long count)
- Description copied from interface:
org.apache.derby.iapi.store.access.StoreCostResult - Set the estimated row count.
- Specified by:
setEstimatedRowCountin interfaceorg.apache.derby.iapi.store.access.StoreCostResult
setState
public CostEstimateImpl setState(double theCost, double theRowCount, CostEstimateImpl retval)
|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> sql >> [ compile overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.derby.impl.sql.compile.CostEstimateImpl