Class SqlToRelConverterTest.RelValidityChecker

  • All Implemented Interfaces:
    org.apache.calcite.rel.RelNode.Context
    Enclosing class:
    SqlToRelConverterTest

    public static class SqlToRelConverterTest.RelValidityChecker
    extends org.apache.calcite.rel.RelVisitor
    implements org.apache.calcite.rel.RelNode.Context
    Visitor that checks that every RelNode in a tree is valid.
    See Also:
    RelNode.isValid(Litmus, RelNode.Context)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int invalidCount  
      (package private) java.util.Deque<org.apache.calcite.rel.RelNode> stack  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<org.apache.calcite.rel.core.CorrelationId> correlationIds()  
      void visit​(org.apache.calcite.rel.RelNode node, int ordinal, org.apache.calcite.rel.RelNode parent)  
      • Methods inherited from class org.apache.calcite.rel.RelVisitor

        go, replaceRoot
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • invalidCount

        int invalidCount
      • stack

        final java.util.Deque<org.apache.calcite.rel.RelNode> stack
    • Constructor Detail

      • RelValidityChecker

        public RelValidityChecker()
    • Method Detail

      • correlationIds

        public java.util.Set<org.apache.calcite.rel.core.CorrelationId> correlationIds()
        Specified by:
        correlationIds in interface org.apache.calcite.rel.RelNode.Context
      • visit

        public void visit​(org.apache.calcite.rel.RelNode node,
                          int ordinal,
                          org.apache.calcite.rel.RelNode parent)
        Overrides:
        visit in class org.apache.calcite.rel.RelVisitor