com.akiban.sql.parser
Class WindowReferenceNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.WindowNode
          extended by com.akiban.sql.parser.WindowReferenceNode
All Implemented Interfaces:
Visitable

public final class WindowReferenceNode
extends WindowNode

Represents a reference to an explicitly defined window


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
WindowReferenceNode()
           
 
Method Summary
 void init(Object arg1)
          Initializer
 String toString()
          Format this node as a string Each sub-class of QueryTreeNode should implement its own toString() method.
 
Methods inherited from class com.akiban.sql.parser.WindowNode
copyFrom, getName
 
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, printSubNodes, 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

WindowReferenceNode

public WindowReferenceNode()
Method Detail

init

public void init(Object arg1)
          throws StandardException
Initializer

Overrides:
init in class WindowNode
Parameters:
arg1 - The window name referenced
Throws:
StandardException

toString

public String toString()
Description copied from class: QueryTreeNode
Format this node as a string Each sub-class of QueryTreeNode should implement its own toString() method. In each case, toString() should format the class members that are not sub-types of QueryTreeNode (printSubNodes() takes care of following the references to sub-nodes, and toString() takes care of all members that are not sub-nodes). Newlines should be used liberally - one good way to do this is to have a newline at the end of each formatted member. It's also a good idea to put the name of each member in front of the formatted value. For example, the code might look like: "memberName: " + memberName + "\n" + ... List members containing subclasses of QueryTreeNode should subclass QueryTreeNodeList. Such subclasses form a special case: These classes should not implement printSubNodes, since there is generic handling in QueryTreeNodeList. They should only implement toString if they contain additional members.

Overrides:
toString in class QueryTreeNode
Returns:
This node formatted as a String


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.