|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.ResultSetNode
com.akiban.sql.parser.SelectNode
public class SelectNode
A SelectNode represents the result set for any of the basic DML operations: SELECT, INSERT, UPDATE, and DELETE. (A RowResultSetNode will be used for an INSERT with a VALUES clause.) For INSERT - SELECT, any of the fields in a SelectNode can be used (the SelectNode represents the SELECT statement in the INSERT - SELECT). For UPDATE and DELETE, there will be one table in the fromList, and the groupByList fields will be null. For both INSERT and UPDATE, the resultColumns in the selectList will contain the names of the columns being inserted into or updated.
| Field Summary |
|---|
| Fields inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX |
| Constructor Summary | |
|---|---|
SelectNode()
|
|
| Method Summary | |
|---|---|
void |
clearDistinct()
|
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node. |
FromList |
getFromList()
Return the fromList for this SelectNode. |
GroupByList |
getGroupByList()
|
ValueNode |
getHavingClause()
|
ValueNode |
getWhereClause()
Return the whereClause for this SelectNode. |
WindowList |
getWindows()
|
boolean |
hasWindows()
Used by SubqueryNode to avoid flattening of a subquery if a window is defined on it. |
void |
init(Object selectList,
Object aggregateList,
Object fromList,
Object whereClause,
Object groupByList,
Object havingClause,
Object windowDefinitionList)
Initialize a query tree node. |
boolean |
isDistinct()
|
boolean |
isStraightJoin()
|
void |
makeDistinct()
|
void |
makeStraightJoin()
|
void |
printSubNodes(int depth)
Prints the sub-nodes of this object. |
void |
setHavingClause(ValueNode havingClause)
|
void |
setWhereClause(ValueNode whereClause)
|
String |
statementToString()
|
String |
toString()
Convert this object to a String. |
| Methods inherited from class com.akiban.sql.parser.ResultSetNode |
|---|
getResultColumns, setInsertSource, setResultColumns |
| Methods inherited from class com.akiban.sql.parser.QueryTreeNode |
|---|
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelectNode()
| Method Detail |
|---|
public void init(Object selectList,
Object aggregateList,
Object fromList,
Object whereClause,
Object groupByList,
Object havingClause,
Object windowDefinitionList)
throws StandardException
QueryTreeNode
init in class QueryTreeNodeStandardException - Thrown on error
public void copyFrom(QueryTreeNode node)
throws StandardException
copyFrom in class ResultSetNodeStandardExceptionpublic String toString()
toString in class ResultSetNodepublic String statementToString()
public void makeDistinct()
public void clearDistinct()
public boolean isDistinct()
public void makeStraightJoin()
public boolean isStraightJoin()
public void printSubNodes(int depth)
printSubNodes in class ResultSetNodedepth - The depth of this node in the treepublic FromList getFromList()
public ValueNode getWhereClause()
public void setWhereClause(ValueNode whereClause)
public GroupByList getGroupByList()
public ValueNode getHavingClause()
public void setHavingClause(ValueNode havingClause)
public boolean hasWindows()
public WindowList getWindows()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||