public class Plan extends Object
| 构造器和说明 |
|---|
Plan(TableFilter[] filters,
int count,
Expression condition)
Create a query plan with the given order.
|
| 限定符和类型 | 方法和说明 |
|---|---|
double |
calculateCost(SessionLocal session,
AllColumnsForPlan allColumnsSet)
Calculate the cost of this query plan.
|
TableFilter[] |
getFilters()
The the list of tables.
|
PlanItem |
getItem(TableFilter filter)
Get the plan item for the given table.
|
void |
removeUnusableIndexConditions()
Remove all index conditions that can not be used.
|
public Plan(TableFilter[] filters, int count, Expression condition)
filters - the tables of the querycount - the number of table itemscondition - the condition in the WHERE clausepublic PlanItem getItem(TableFilter filter)
filter - the tablepublic TableFilter[] getFilters()
public void removeUnusableIndexConditions()
public double calculateCost(SessionLocal session, AllColumnsForPlan allColumnsSet)
session - the sessionallColumnsSet - calculates all columns on-demandCopyright © 2022. All rights reserved.