simpledb.planner
Class BasicQueryPlanner

java.lang.Object
  extended by simpledb.planner.BasicQueryPlanner
All Implemented Interfaces:
QueryPlanner

public class BasicQueryPlanner
extends Object
implements QueryPlanner

The simplest, most naive query planner possible.

Author:
Edward Sciore

Constructor Summary
BasicQueryPlanner()
           
 
Method Summary
 Plan createPlan(QueryData data, Transaction tx)
          Creates a query plan as follows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicQueryPlanner

public BasicQueryPlanner()
Method Detail

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 query
tx - the calling transaction
Returns:
a plan for that query


Copyright © 2011. All Rights Reserved.