| Modifier and Type | Method and Description |
|---|---|
| public CostEstimate | Returns: this + other.This cost estimate to add this one to. addend, CostEstimate If non-null, put the result here. retval)Add this cost estimate to another one. |
| public CostEstimate | |
| public double | Returns: < 0 if this < other, 0 if this == other, > 0 if this > otherThe cost estimate to compare this one with other)Compare this cost estimate with the given cost estimate. |
| public CostEstimate | Returns: this / divisorThe value to divide this CostEstimate by. divisor, CostEstimate If non-null, put the result here. retval)Divide this cost estimate by a scalar, non-dimensional number. |
| public boolean | Returns: Whether or not this CostEstimate is uninitialized.Return whether or not this CostEstimate is uninitialized. |
| public CostEstimate | Returns: this * multiplicandThe value to multiply this CostEstimate by. multiplicand, CostEstimate If non-null, put the result here. retval)Multiply this cost estimate by a scalar, non-dimensional number. |
| public double | |
| public void | setCost(double cost, double rowCount, double singleScanRowCount)
Set the cost for this cost estimate. |
| public void | |
| public void | |
| public double | singleScanRowCount()
Get the estimated number of rows returned by a single scan of the ResultSet that this CostEstimate models. |
| add | back to summary |
|---|---|
| public CostEstimate add(CostEstimate addend, CostEstimate retval) Add this cost estimate to another one. This presumes that any row ordering is destroyed.
| |
| cloneMe | back to summary |
|---|---|
| public CostEstimate cloneMe() Get a copy of this CostEstimate | |
| compare | back to summary |
|---|---|
| public double compare(CostEstimate other) Compare this cost estimate with the given cost estimate.
| |
| divide | back to summary |
|---|---|
| public CostEstimate divide(double divisor, CostEstimate retval) Divide this cost estimate by a scalar, non-dimensional number.
| |
| isUninitialized | back to summary |
|---|---|
| public boolean isUninitialized() Return whether or not this CostEstimate is uninitialized.
| |
| multiply | back to summary |
|---|---|
| public CostEstimate multiply(double multiplicand, CostEstimate retval) Multiply this cost estimate by a scalar, non-dimensional number. This presumes that any row ordering is destroyed.
| |
| rowCount | back to summary |
|---|---|
| public double rowCount() Get the estimated number of rows returned by the ResultSet that this CostEstimate models. | |
| setCost | back to summary |
|---|---|
| public void setCost(double cost, double rowCount, double singleScanRowCount) Set the cost for this cost estimate. | |
| setCost | back to summary |
|---|---|
| public void setCost(CostEstimate other) Copy the values from the given cost estimate into this one. | |
| setSingleScanRowCount | back to summary |
|---|---|
| public void setSingleScanRowCount(double singleRowScanCount) Set the single scan row count. | |
| singleScanRowCount | back to summary |
|---|---|
| public double singleScanRowCount() Get the estimated number of rows returned by a single scan of the ResultSet that this CostEstimate models. | |