org.eigenbase.rel
Class ProjectRelBase.Checker

java.lang.Object
  extended by org.eigenbase.rex.RexVisitorImpl<Boolean>
      extended by org.eigenbase.rel.ProjectRelBase.Checker
All Implemented Interfaces:
RexVisitor<Boolean>
Enclosing class:
ProjectRelBase

private static class ProjectRelBase.Checker
extends RexVisitorImpl<Boolean>

Visitor which walks over a program and checks validity.


Field Summary
private  boolean fail
           
(package private)  int failCount
           
private  RelDataType inputRowType
           
 
Fields inherited from class org.eigenbase.rex.RexVisitorImpl
deep
 
Constructor Summary
private ProjectRelBase.Checker(RelDataType inputRowType, boolean fail)
          Creates a Checker.
 
Method Summary
 Boolean visitFieldAccess(RexFieldAccess fieldAccess)
           
 Boolean visitInputRef(RexInputRef inputRef)
           
 Boolean visitLocalRef(RexLocalRef localRef)
           
 
Methods inherited from class org.eigenbase.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCall, visitCorrelVariable, visitDynamicParam, visitLiteral, visitOver, visitRangeRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fail

private final boolean fail

inputRowType

private final RelDataType inputRowType

failCount

int failCount
Constructor Detail

ProjectRelBase.Checker

private ProjectRelBase.Checker(RelDataType inputRowType,
                               boolean fail)
Creates a Checker.

Parameters:
inputRowType - Input row type to expressions
fail - Whether to throw if checker finds an error
Method Detail

visitInputRef

public Boolean visitInputRef(RexInputRef inputRef)
Specified by:
visitInputRef in interface RexVisitor<Boolean>
Overrides:
visitInputRef in class RexVisitorImpl<Boolean>

visitLocalRef

public Boolean visitLocalRef(RexLocalRef localRef)
Specified by:
visitLocalRef in interface RexVisitor<Boolean>
Overrides:
visitLocalRef in class RexVisitorImpl<Boolean>

visitFieldAccess

public Boolean visitFieldAccess(RexFieldAccess fieldAccess)
Specified by:
visitFieldAccess in interface RexVisitor<Boolean>
Overrides:
visitFieldAccess in class RexVisitorImpl<Boolean>