query
Class CreateTable

java.lang.Object
  extended by query.CreateTable
All Implemented Interfaces:
Plan

 class CreateTable
extends java.lang.Object
implements Plan

Execution plan for creating tables.


Constructor Summary
CreateTable(AST_CreateTable tree)
          Optimizes the plan, given the parsed query.
 
Method Summary
 void execute()
          Executes the plan and prints applicable output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateTable

public CreateTable(AST_CreateTable tree)
            throws QueryException
Optimizes the plan, given the parsed query.

Throws:
QueryException - if file name already exists or schema is invalid
Method Detail

execute

public void execute()
Executes the plan and prints applicable output.

Specified by:
execute in interface Plan