org.eigenbase.oj.stmt
Class OJPreparingStmt.JavaRelFinder

java.lang.Object
  extended by org.eigenbase.rel.RelVisitor
      extended by org.eigenbase.oj.stmt.OJPreparingStmt.JavaRelFinder
Enclosing class:
OJPreparingStmt

public static class OJPreparingStmt.JavaRelFinder
extends RelVisitor

Walks a RelNode tree and determines if it contains any JavaRels.

Author:
Zelaine Fong

Field Summary
private  boolean javaRelFound
           
 
Constructor Summary
OJPreparingStmt.JavaRelFinder()
           
 
Method Summary
 boolean containsJavaRel()
           
 void visit(RelNode node, int ordinal, RelNode parent)
          Visits a node during a traversal.
 
Methods inherited from class org.eigenbase.rel.RelVisitor
go, replaceRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

javaRelFound

private boolean javaRelFound
Constructor Detail

OJPreparingStmt.JavaRelFinder

public OJPreparingStmt.JavaRelFinder()
Method Detail

visit

public void visit(RelNode node,
                  int ordinal,
                  RelNode parent)
Description copied from class: RelVisitor
Visits a node during a traversal.

Overrides:
visit in class RelVisitor
Parameters:
node - Node to visit
ordinal - Ordinal of node within its parent
parent - Parent of the node, or null if it is the root of the traversal

containsJavaRel

public boolean containsJavaRel()