simpledb.planner
Class BasicQueryPlanner
java.lang.Object
simpledb.planner.BasicQueryPlanner
- All Implemented Interfaces:
- QueryPlanner
public class BasicQueryPlanner
- extends Object
- implements QueryPlanner
The simplest, most naive query planner possible.
- Author:
- Edward Sciore
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicQueryPlanner
public BasicQueryPlanner()
createPlan
public Plan createPlan(QueryData data,
Transaction tx)
- Creates a query plan as follows. It first takes
the product of all tables and views; it then selects on the predicate;
and finally it projects on the field list.
- Specified by:
createPlan
in interface QueryPlanner
- Parameters:
data
- the parsed representation of the querytx
- the calling transaction
- Returns:
- a plan for that query
Copyright © 2011. All Rights Reserved.