Class WindowDefinitionNode
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.QueryTreeNode
-
- org.apache.derby.impl.sql.compile.WindowNode
-
- 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
Fields Modifier and Type Field Description 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_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
-
-
Constructor Summary
Constructors Constructor Description WindowDefinitionNode(java.lang.String windowName, OrderByList orderByList, ContextManager cm)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) WindowDefinitionNode
findEquivalentWindow(WindowList wl)
Used to merge equivalent window definitions.(package private) OrderByList
getOrderByList()
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
-
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, acceptChildren, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContext, getContextManager, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getLongProperty, getNullNode, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, getUDTDesc, isAtomic, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, treePrint, treePrint, verifyClassExist
-
-
-
-
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
WindowDefinitionNode(java.lang.String windowName, OrderByList orderByList, ContextManager cm) throws StandardException
Constructor.- Parameters:
windowName
- The window name, null if in-lined definitionorderByList
- ORDER BY listcm
- The context manager- Throws:
StandardException
-
-
Method Detail
-
toString
public java.lang.String toString()
java.lang.Object override.- Overrides:
toString
in classQueryTreeNode
- 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 classQueryTreeNode
- Parameters:
depth
- The depth of this node in the tree- See Also:
QueryTreeNode.printSubNodes(int)
-
findEquivalentWindow
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
OrderByList getOrderByList()
- Returns:
- the order by list of this window definition if any, else null.
-
-