public class Planner extends Object
Constructor and Description |
---|
Planner() |
Modifier and Type | Method and Description |
---|---|
static QueryPlanNode |
formQueryPlan(DatabaseConnection db,
TableSelectExpression expression,
com.mckoi.database.interpret.TableExpressionFromSet from_set,
ArrayList order_by)
Forms a query plan (QueryPlanNode) from the given TableSelectExpression
and TableExpressionFromSet.
|
static QueryPlanNode |
planForOrderBy(QueryPlanNode plan,
ArrayList order_by,
com.mckoi.database.interpret.TableExpressionFromSet from_set,
ArrayList s_col_list)
Plans an ORDER BY set.
|
public static QueryPlanNode formQueryPlan(DatabaseConnection db, TableSelectExpression expression, com.mckoi.database.interpret.TableExpressionFromSet from_set, 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, ArrayList order_by, com.mckoi.database.interpret.TableExpressionFromSet from_set, ArrayList s_col_list) throws DatabaseException
NOTE: s_col_list is optional.
DatabaseException
Copyright © 2015. All rights reserved.