Class ReferencedTablesVisitor
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.ReferencedTablesVisitor
-
-
Constructor Summary
Constructors Constructor Description ReferencedTablesVisitor(JBitSet tableMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) JBitSetgetTableMap()booleanskipChildren(Visitable node)No need to go below a Predicate or ResultSet.booleanstopTraversal()Method that is called to see if query tree traversal should be stopped before visiting all nodes.Visitablevisit(Visitable node)Don't do anything unless we have a ColumnReference, Predicate or ResultSetNode node.booleanvisitChildrenFirst(Visitable node)Method that is called to see ifvisit()should be called on the children ofnodebefore it is called onnodeitself.
-
-
-
Field Detail
-
tableMap
private JBitSet tableMap
-
-
Constructor Detail
-
ReferencedTablesVisitor
ReferencedTablesVisitor(JBitSet tableMap)
-
-
Method Detail
-
visit
public Visitable visit(Visitable node) throws StandardException
Don't do anything unless we have a ColumnReference, Predicate or ResultSetNode node.- Specified by:
visitin interfaceVisitor- Parameters:
node- the node to process- Returns:
- me
- Throws:
StandardException- on error
-
skipChildren
public boolean skipChildren(Visitable node)
No need to go below a Predicate or ResultSet.- Specified by:
skipChildrenin interfaceVisitor- Parameters:
node- the node to process- Returns:
- Whether or not to go below the node.
-
visitChildrenFirst
public boolean visitChildrenFirst(Visitable node)
Description copied from interface:VisitorMethod that is called to see ifvisit()should be called on the children ofnodebefore it is called onnodeitself. If this method always returnstrue, the visitor will walk the tree bottom-up. If it always returnsfalse, the tree is visited top-down.- Specified by:
visitChildrenFirstin interfaceVisitor- Parameters:
node- the top node of a sub-tree about to be visited- Returns:
trueifnode's children should be visited beforenode,falseotherwise
-
stopTraversal
public boolean stopTraversal()
Description copied from interface:VisitorMethod 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.- Specified by:
stopTraversalin interfaceVisitor- Returns:
- true/false
-
getTableMap
JBitSet getTableMap()
-
-