| Modifier and Type | Field and Description |
|---|---|
private ResultColumnList |
rcl |
private java.lang.Class |
skipOverClass |
private int |
tableNumber |
| Constructor and Description |
|---|
ReplaceWindowFuncCallsWithCRVisitor(ResultColumnList rcl,
int tableNumber,
java.lang.Class skipOverClass)
Replace all window function calls with column references.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
skipChildren(Visitable node)
Don't visit childen under the skipOverClass
node, if it isn't null.
|
boolean |
stopTraversal()
Vistor override.
|
Visitable |
visit(Visitable node)
Don't do anything unless we have a window function node
node.
|
boolean |
visitChildrenFirst(Visitable node)
Vistor override.
|
private ResultColumnList rcl
private java.lang.Class skipOverClass
private int tableNumber
public ReplaceWindowFuncCallsWithCRVisitor(ResultColumnList rcl, int tableNumber, java.lang.Class skipOverClass)
rcl - the result column listtableNumber - The tableNumber for the new CRsskipOverClass - Don't go past thispublic Visitable visit(Visitable node) throws StandardException
visit in interface Visitornode - the node to processStandardException - may be throw an error
as needed by the visitor (i.e. may be a normal error
if a particular node is found, e.g. if checking
a group by, we don't expect to find any ColumnReferences
that aren't under an AggregateNode -- the easiest
thing to do is just throw an error when we find the
questionable node).Visitor.visit(org.apache.derby.iapi.sql.compile.Visitable)public boolean skipChildren(Visitable node)
skipChildren in interface Visitornode - the node to processVisitor.skipChildren(org.apache.derby.iapi.sql.compile.Visitable)public boolean visitChildrenFirst(Visitable node)
visitChildrenFirst in interface Visitornode - the top node of a sub-tree about to be visitedVisitor.visitChildrenFirst(org.apache.derby.iapi.sql.compile.Visitable)public boolean stopTraversal()
stopTraversal in interface VisitorVisitor.skipChildren(org.apache.derby.iapi.sql.compile.Visitable)Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.