com.akiban.sql.parser
Class WindowDefinitionNode

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

public final class WindowDefinitionNode
extends WindowNode

This class represents an OLAP window definition.


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
WindowDefinitionNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 WindowDefinitionNode findEquivalentWindow(WindowList wl)
          Used to merge equivalent window definitions.
 OrderByList getOrderByList()
           
 PartitionByList getPartitionByList()
           
 void init(Object arg1, Object arg2, Object arg3)
          Initializer.
 boolean isInline()
           
 void printSubNodes(int depth)
          QueryTreeNode override.
 String toString()
          java.lang.Object override.
 
Methods inherited from class com.akiban.sql.parser.WindowNode
getName, init
 
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, 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

WindowDefinitionNode

public WindowDefinitionNode()
Method Detail

init

public void init(Object arg1,
                 Object arg2,
                 Object arg3)
          throws StandardException
Initializer.

Overrides:
init in class QueryTreeNode
Parameters:
arg1 - The window name, null if in-lined definition
arg2 - PARTITION BY list
arg3 - ORDER BY list
Throws:
StandardException

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class WindowNode
Throws:
StandardException

toString

public String toString()
java.lang.Object override.

Overrides:
toString in class QueryTreeNode
Returns:
This node formatted as a String
See Also:
QueryTreeNode.toString()

printSubNodes

public void printSubNodes(int depth)
QueryTreeNode override. Prints the sub-nodes of this object.

Overrides:
printSubNodes in class QueryTreeNode
Parameters:
depth - The depth of this node in the tree
See Also:
QueryTreeNode.printSubNodes(int)

findEquivalentWindow

public WindowDefinitionNode findEquivalentWindow(WindowList wl)
Used to merge equivalent window definitions.

Parameters:
wl - list of window definitions
Returns:
an existing window definition from wl, if 'this' is equivalent to a window in wl.

isInline

public boolean isInline()
Returns:
whether this definition is inline

getOrderByList

public OrderByList getOrderByList()
Returns:
the order by list of this window definition if any, else null.

getPartitionByList

public PartitionByList getPartitionByList()
Returns:
the partition by list of this window definition if any, else null.


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