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 booleanTrue of the window definition was inlined.private OrderByListThe order by list if the window definition contains a, else null. Fields inherited from class 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) WindowDefinitionNodeUsed to merge equivalent window definitions.(package private) OrderByListprivate booleanisEquivalent(WindowDefinitionNode other) voidprintSubNodes(int depth) QueryTreeNode override.toString()java.lang.Object override.Methods inherited from class WindowNode
getNameMethods inherited from class 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:
toStringin 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:
printSubNodesin 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.
-