| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private JBitSet |
| Access | Constructor and Description |
|---|---|
| pack-priv | BaseTableNumbersVisitor(JBitSet
JBitSet into which we put the table numbers we find. tableMap)Constructor: takes a JBitSet to use as the holder for any base table numbers found while walking the subtree. |
| Modifier and Type | Method and Description |
|---|---|
| protected int | getColumnNumber()
Retrieve the the position of the ColumnReference or ResultColumn for which we most recently found a base table number. |
| protected void | |
| protected void | setTableMap(JBitSet
JBitSet into which we put the table numbers we find. tableMap)Set a new JBitSet to serve as the holder for base table numbers we find while walking. |
| public boolean | skipChildren(Visitable
the node to process node)Implements org. Method that is called to indicate whether we should skip all nodes below this node for traversal. |
| public boolean | stopTraversal()
Implements org. Method that is called to see if query tree traversal should be stopped before visiting all nodes. |
| public Visitable | visit(Visitable
the node to process node)Implements org. This is the default visit operation on a QueryTreeNode. |
| public boolean | visitChildrenFirst(Visitable
the top node of a sub-tree about to be visited node)Implements org. Method that is called to see if |
| columnNumber | back to summary |
|---|---|
| private int columnNumber | |
| tableMap | back to summary |
|---|---|
| private JBitSet tableMap | |
| BaseTableNumbersVisitor | back to summary |
|---|---|
| pack-priv BaseTableNumbersVisitor(JBitSet tableMap) Constructor: takes a JBitSet to use as the holder for any base table numbers found while walking the subtree.
| |
| getColumnNumber | back to summary |
|---|---|
| protected int getColumnNumber() Retrieve the the position of the ColumnReference or ResultColumn for which we most recently found a base table number. | |
| reset | back to summary |
|---|---|
| protected void reset() Reset the state of this visitor. | |
| setTableMap | back to summary |
|---|---|
| protected void setTableMap(JBitSet tableMap) Set a new JBitSet to serve as the holder for base table numbers we find while walking.
| |
| skipChildren | back to summary |
|---|---|
| public boolean skipChildren(Visitable node) Implements org. Doc from org. Method that is called to indicate whether we should skip all nodes below this node for traversal. Useful if we want to effectively ignore/prune all branches under a particular node. Differs from stopTraversal() in that it only affects subtrees, rather than the entire traversal.
| |
| stopTraversal | back to summary |
|---|---|
| public boolean stopTraversal() Implements org. Doc from org. Method that is called to see if query tree traversal should be stopped before visiting all nodes. Useful for short circuiting traversal if we already know we are done.
| |
| visit | back to summary |
|---|---|
| public Visitable visit(Visitable node) throws StandardException Implements org. Doc from org. This is the default visit operation on a QueryTreeNode. It just returns the node. This will typically suffice as the default visit operation for most visitors unless the visitor needs to count the number of nodes visited or something like that. Visitors will overload this method by implementing a version with a signature that matches a specific type of node. For example, if I want to do something special with aggregate nodes, then that Visitor will implement a visit(AggregateNode node) method which does the aggregate specific processing.
| |
| visitChildrenFirst | back to summary |
|---|---|
| public boolean visitChildrenFirst(Visitable node) Implements org. Doc from org. Method that is called to see if
| |