| Modifier and Type | Field and Description |
|---|---|
| pack-priv FromTable | parent
The parent to the WindowResultSetNode. |
| pack-priv WindowDefinitionNode | |
| pack-priv List |
| Access | Constructor and Description |
|---|---|
| pack-priv | WindowResultSetNode(ResultSetNode
The project restrict result set we want to wrap bottomPR, WindowDefinitionNode The window definition windowDef, List<WindowFunctionNode> All window function calls in SELECT's select list
and order by list. windowFuncCalls, int Nesting level nestingLevel, ContextManager The context manager cm)Constructor for a WindowResultSetNode. |
| Modifier and Type | Method and Description |
|---|---|
| private void | addNewColumns()
Substitute new result columns for window function calls and add the result columns to childResult's list of columns. |
| private void | |
| private boolean | Returns: true if an equivalent column reference to cand
is already present in uniqueColRefslist of unique column references uniqueColRefs, ColumnReference the candidate to check is present in list cand)
|
| pack-priv void | generate(ActivationClassBuilder
The ActivationClassBuilder for the class being built acb, MethodBuilder The method for the generated code to go into mb)Overrides org. Do the code generation for this node. |
| pack-priv final FromTable | Returns: parent of this node, a PRN, used by SelectNode to retrieve new top result set node after window result set rewrite of result set tree.
|
| public void | printSubNodes(int
The depth of this node in the tree depth)Overrides org. QueryTreeNode override |
| parent | back to summary |
|---|---|
| pack-priv FromTable parent The parent to the WindowResultSetNode. We generate a ProjectRestrict over the windowing node and parent is set to that node. | |
| wdn | back to summary |
|---|---|
| pack-priv WindowDefinitionNode wdn | |
| windowFuncCalls | back to summary |
|---|---|
| pack-priv List<WindowFunctionNode> windowFuncCalls | |
| WindowResultSetNode | back to summary |
|---|---|
| pack-priv WindowResultSetNode(ResultSetNode bottomPR, WindowDefinitionNode windowDef, List<WindowFunctionNode> windowFuncCalls, int nestingLevel, ContextManager cm) throws StandardException Constructor for a WindowResultSetNode.
| |
| addNewColumns | back to summary |
|---|---|
| private void addNewColumns() throws StandardException Substitute new result columns for window function calls and add the result columns to childResult's list of columns.
| |
| addNewPRNode | back to summary |
|---|---|
| private void addNewPRNode() throws StandardException Add a new PR node. Put the new PR under any sort.
| |
| colRefAlreadySeen | back to summary |
|---|---|
private boolean colRefAlreadySeen(List<ValueNode> uniqueColRefs, ColumnReference cand) throws StandardException
| |
| generate | back to summary |
|---|---|
| pack-priv void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException Overrides org. Doc from org. Do the code generation for this node. This is a place-holder method - it should be over-ridden in the sub-classes.
| |
| getParent | back to summary |
|---|---|
pack-priv final FromTable getParent()
| |
| printSubNodes | back to summary |
|---|---|
| public void printSubNodes(int depth) Overrides org. QueryTreeNode override
| |