parser
Class AST_CreateTable

java.lang.Object
  extended by parser.SimpleNode
      extended by parser.AST_CreateTable
All Implemented Interfaces:
GlobalConst, Node

public class AST_CreateTable
extends SimpleNode
implements GlobalConst

AST node for CREATE TABLE statements.


Field Summary
protected  java.lang.String fileName
          Name of the table to create.
 
Fields inherited from class parser.SimpleNode
children, id, parent, parser
 
Fields inherited from interface global.GlobalConst
EMPTY_SLOT, FIRST_PAGEID, INVALID_PAGEID, MAX_COLSIZE, MAX_TUPSIZE, NAME_MAXLEN, PAGE_SIZE, PIN_DISKIO, PIN_MEMCPY, UNPIN_CLEAN, UNPIN_DIRTY
 
Constructor Summary
AST_CreateTable(int id)
           
AST_CreateTable(MiniSql p, int id)
           
 
Method Summary
 java.lang.String getFileName()
          Gets the name of the table to create.
 Schema getSchema()
          Gets the parsed schema for the table to create.
 
Methods inherited from class parser.SimpleNode
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fileName

protected java.lang.String fileName
Name of the table to create.

Constructor Detail

AST_CreateTable

public AST_CreateTable(int id)

AST_CreateTable

public AST_CreateTable(MiniSql p,
                       int id)
Method Detail

getFileName

public java.lang.String getFileName()
Gets the name of the table to create.


getSchema

public Schema getSchema()
                 throws ParseException
Gets the parsed schema for the table to create.

Throws:
ParseException - if duplicate column names or invalid lengths