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
This class represents an OLAP window definition.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
True of the window definition was inlined.private 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
ConstructorsConstructorDescriptionWindowDefinitionNode
(String windowName, OrderByList orderByList, ContextManager cm) Constructor. -
Method Summary
Modifier and TypeMethodDescription(package private) WindowDefinitionNode
Used to merge equivalent window definitions.(package private) OrderByList
private boolean
isEquivalent
(WindowDefinitionNode other) void
printSubNodes
(int depth) QueryTreeNode override.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 Details
-
inlined
private boolean inlinedTrue of the window definition was inlined. -
orderByList
The order by list if the window definition contains a, else null.
-
-
Constructor Details
-
WindowDefinitionNode
WindowDefinitionNode(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 Details
-
toString
java.lang.Object override.- Overrides:
toString
in classQueryTreeNode
- Returns:
- This node formatted as a String
- See Also:
-
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:
-
findEquivalentWindow
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
- 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.
-