public class Plan extends Object
| Constructor and Description |
|---|
Plan(TableFilter[] filters,
int count,
Expression condition)
Create a query plan with the given order.
|
| Modifier and Type | Method and Description |
|---|---|
double |
calculateCost(Session session)
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(Session session)
session - the sessionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.