parser
Class AST_Select

java.lang.Object
  extended by parser.SimpleNode
      extended by parser.AST_Select
All Implemented Interfaces:
Node

public class AST_Select
extends SimpleNode

AST node for SELECT statements.


Field Summary
 boolean isDistinct
          True if this is a DISTINCT selection; false otherwise.
 boolean isExplain
          True if this is an EXPLAIN statement; false otherwise.
 
Fields inherited from class parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
AST_Select(int id)
           
AST_Select(MiniSql p, int id)
           
 
Method Summary
 java.lang.String[] getColumns()
          Gets the column names in the projection list (length 0 if '*').
 SortKey[] getOrders()
          Gets the columns to sort on.
 Predicate[][] getPredicates()
          Gets the WHERE clause predicates in Conjunctive Normal Form (a.k.a.
 java.lang.String[] getTables()
          Gets the tables to select from.
 
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

isExplain

public boolean isExplain
True if this is an EXPLAIN statement; false otherwise.


isDistinct

public boolean isDistinct
True if this is a DISTINCT selection; false otherwise.

Constructor Detail

AST_Select

public AST_Select(int id)

AST_Select

public AST_Select(MiniSql p,
                  int id)
Method Detail

getColumns

public java.lang.String[] getColumns()
Gets the column names in the projection list (length 0 if '*').


getTables

public java.lang.String[] getTables()
Gets the tables to select from.


getPredicates

public Predicate[][] getPredicates()
Gets the WHERE clause predicates in Conjunctive Normal Form (a.k.a. product of sums, i.e. AND expression of OR expressions).


getOrders

public SortKey[] getOrders()
Gets the columns to sort on.