org.apache.derby.impl.sql.compile
Class WindowDefinitionNode

java.lang.Object
  extended by org.apache.derby.impl.sql.compile.QueryTreeNode
      extended by org.apache.derby.impl.sql.compile.WindowNode
          extended by org.apache.derby.impl.sql.compile.WindowDefinitionNode
All Implemented Interfaces:
Visitable

public final class WindowDefinitionNode
extends WindowNode

This class represents an OLAP window definition.


Field Summary
private  boolean inlined
          True of the window definition was inlined.
private  OrderByList orderByList
          The order by list if the window definition contains a , else null.
 
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired
 
Constructor Summary
WindowDefinitionNode()
           
 
Method Summary
 WindowDefinitionNode findEquivalentWindow(WindowList wl)
          Used to merge equivalent window definitions.
 OrderByList getOrderByList()
           
 void init(java.lang.Object arg1, java.lang.Object arg2)
          Initializer.
private  boolean isEquivalent(WindowDefinitionNode other)
           
 void printSubNodes(int depth)
          QueryTreeNode override.
 java.lang.String toString()
          java.lang.Object override.
 
Methods inherited from class org.apache.derby.impl.sql.compile.WindowNode
getName, init
 
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inlined

private boolean inlined
True of the window definition was inlined.


orderByList

private OrderByList orderByList
The order by list if the window definition contains a , else null.

Constructor Detail

WindowDefinitionNode

public WindowDefinitionNode()
Method Detail

init

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

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

toString

public java.lang.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.

isEquivalent

private boolean isEquivalent(WindowDefinitionNode other)
Returns:
true if the window specifications are equal; no need to create more than one window then.

getOrderByList

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

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.