| Modifier and Type | Field | Description |
|---|---|---|
private ResultColumnList |
rcl |
|
private java.lang.Class<?> |
skipOverClass |
|
private int |
tableNumber |
| Constructor | Description |
|---|---|
ReplaceAggregatesWithCRVisitor(ResultColumnList rcl,
int tableNumber) |
Replace all aggregates with column references.
|
ReplaceAggregatesWithCRVisitor(ResultColumnList rcl,
int tableNumber,
java.lang.Class<?> skipOverClass) |
|
ReplaceAggregatesWithCRVisitor(ResultColumnList rcl,
java.lang.Class<?> nodeToSkip) |
Replace all aggregates with column references.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
skipChildren(Visitable node) |
Don't visit children under the skipOverClass
node, if it isn't null.
|
boolean |
stopTraversal() |
Method that is called to see
if query tree traversal should be
stopped before visiting all nodes.
|
Visitable |
visit(Visitable node) |
Don't do anything unless we have an aggregate
node.
|
boolean |
visitChildrenFirst(Visitable node) |
Method that is called to see if
visit() should be called on
the children of node before it is called on node itself. |
private ResultColumnList rcl
private java.lang.Class<?> skipOverClass
private int tableNumber
ReplaceAggregatesWithCRVisitor(ResultColumnList rcl, int tableNumber)
rcl - the result column listtableNumber - The tableNumber for the new CRsReplaceAggregatesWithCRVisitor(ResultColumnList rcl, int tableNumber, java.lang.Class<?> skipOverClass)
ReplaceAggregatesWithCRVisitor(ResultColumnList rcl, java.lang.Class<?> nodeToSkip)
rcl - the result column listnodeToSkip - don't examine anything below nodeToSkippublic Visitable visit(Visitable node) throws StandardException
visit in interface Visitornode - the node to processStandardException - on errorpublic boolean skipChildren(Visitable node)
skipChildren in interface Visitornode - the node to processpublic boolean visitChildrenFirst(Visitable node)
Visitorvisit() should be called on
the children of node before it is called on node itself.
If this method always returns true, the visitor will walk the
tree bottom-up. If it always returns false, the tree is visited
top-down.visitChildrenFirst in interface Visitornode - the top node of a sub-tree about to be visitedtrue if node's children should be visited
before node, false otherwisepublic boolean stopTraversal()
VisitorstopTraversal in interface VisitorApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.