|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.interpret.Planner
public class Planner
Various methods for forming query plans on SQL queries.
Constructor Summary | |
---|---|
Planner()
|
Method Summary | |
---|---|
static QueryPlanNode |
formQueryPlan(DatabaseConnection db,
TableSelectExpression expression,
com.mckoi.database.interpret.TableExpressionFromSet from_set,
java.util.ArrayList order_by)
Forms a query plan (QueryPlanNode) from the given TableSelectExpression and TableExpressionFromSet. |
static QueryPlanNode |
planForOrderBy(QueryPlanNode plan,
java.util.ArrayList order_by,
com.mckoi.database.interpret.TableExpressionFromSet from_set,
java.util.ArrayList s_col_list)
Plans an ORDER BY set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Planner()
Method Detail |
---|
public static QueryPlanNode formQueryPlan(DatabaseConnection db, TableSelectExpression expression, com.mckoi.database.interpret.TableExpressionFromSet from_set, java.util.ArrayList order_by) throws DatabaseException
The 'order_by' argument is a list of ByColumn objects that represent an optional ORDER BY clause. If this is null or the list is empty, no ordering is done.
DatabaseException
public static QueryPlanNode planForOrderBy(QueryPlanNode plan, java.util.ArrayList order_by, com.mckoi.database.interpret.TableExpressionFromSet from_set, java.util.ArrayList s_col_list) throws DatabaseException
NOTE: s_col_list is optional.
DatabaseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |