|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.compile.ReplaceWindowFuncCallsWithCRVisitor
public class ReplaceWindowFuncCallsWithCRVisitor
Replace all window function calls with result columns.
| Field Summary | |
|---|---|
private ResultColumnList |
rcl
|
private java.lang.Class |
skipOverClass
|
private int |
tableNumber
|
| Constructor Summary | |
|---|---|
ReplaceWindowFuncCallsWithCRVisitor(ResultColumnList rcl,
int tableNumber,
java.lang.Class skipOverClass)
Replace all window function calls with column references. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ResultColumnList rcl
private java.lang.Class skipOverClass
private int tableNumber
| Constructor Detail |
|---|
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 this| Method Detail |
|---|
public Visitable visit(Visitable node)
throws StandardException
visit in interface Visitornode - the node to process
StandardException - 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 process
Visitor.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 visited
Visitor.visitChildrenFirst(org.apache.derby.iapi.sql.compile.Visitable)public boolean stopTraversal()
stopTraversal in interface VisitorVisitor.skipChildren(org.apache.derby.iapi.sql.compile.Visitable)
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||