Top Description Fields Constructors Methods
org.apache.derby.impl.sql.compile

public final Class WindowDefinitionNode

extends WindowNode
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager

This class represents an OLAP window definition.

Field Summary

Modifier and TypeField and Description
private boolean
inlined

True of the window definition was inlined.

private OrderByList
orderByList

The order by list if the window definition contains a <window order clause>, else null.

Constructor Summary

AccessConstructor and Description
pack-priv
WindowDefinitionNode(String
The window name, null if in-lined definition
windowName
,
OrderByList
ORDER BY list
orderByList
,
ContextManager
The context manager
cm
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
pack-priv WindowDefinitionNode

Returns:

an existing window definition from wl, if 'this' is equivalent to a window in wl.
findEquivalentWindow
(WindowList
list of window definitions
wl
)

Used to merge equivalent window definitions.

pack-priv OrderByList

Returns:

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

private boolean

Returns:

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

public void
printSubNodes(int
The depth of this node in the tree
depth
)

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.printSubNodes.

QueryTreeNode override.

public String
Inherited from org.apache.derby.impl.sql.compile.WindowNode:
getName

Field Detail

inlinedback to summary
private boolean inlined

True of the window definition was inlined.

orderByListback to summary
private OrderByList orderByList

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

Constructor Detail

WindowDefinitionNodeback to summary
pack-priv WindowDefinitionNode(String windowName, OrderByList orderByList, ContextManager cm) throws StandardException

Constructor.

Parameters
windowName:String

The window name, null if in-lined definition

orderByList:OrderByList

ORDER BY list

cm:ContextManager

The context manager

Method Detail

findEquivalentWindowback to summary
pack-priv WindowDefinitionNode findEquivalentWindow(WindowList wl)

Used to merge equivalent window definitions.

Parameters
wl:WindowList

list of window definitions

Returns:WindowDefinitionNode

an existing window definition from wl, if 'this' is equivalent to a window in wl.

getOrderByListback to summary
pack-priv OrderByList getOrderByList()
Returns:OrderByList

the order by list of this window definition if any, else null.

isEquivalentback to summary
private boolean isEquivalent(WindowDefinitionNode other)
Returns:boolean

true if the window specifications are equal; no need to create more than one window then.

printSubNodesback to summary
public void printSubNodes(int depth)

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.printSubNodes.

QueryTreeNode override. Prints the sub-nodes of this object.

Parameters
depth:int

The depth of this node in the tree

Annotations
@Override
See Also
QueryTreeNode#printSubNodes
toStringback to summary
public String toString()

Overrides org.apache.derby.impl.sql.compile.QueryTreeNode.toString.

java.lang.Object override.

Returns:String

Doc from org.apache.derby.impl.sql.compile.QueryTreeNode.toString.

This node formatted as a String

Annotations
@Override
See Also
QueryTreeNode#toString