Class KuduSortRule.KuduFilterVisitor

java.lang.Object
org.apache.calcite.rex.RexVisitorImpl<Boolean>
com.twilio.kudu.sql.rules.KuduSortRule.KuduFilterVisitor
All Implemented Interfaces:
org.apache.calcite.rex.RexVisitor<Boolean>
Enclosing class:
KuduSortRule

public static class KuduSortRule.KuduFilterVisitor extends org.apache.calcite.rex.RexVisitorImpl<Boolean>
Searches RexNode to see if the Kudu column index -- stored as mustHave is present in the RexNode and is required.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
     
    final int
     

    Fields inherited from class org.apache.calcite.rex.RexVisitorImpl

    deep
  • Constructor Summary

    Constructors
    Constructor
    Description
    KuduFilterVisitor(int mustHave, boolean isDisableInListOptimizationPresent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    visitCall(org.apache.calcite.rex.RexCall call)
     
    visitInputRef(org.apache.calcite.rex.RexInputRef inputRef)
     
    visitLiteral(org.apache.calcite.rex.RexLiteral literal)
     
    visitLocalRef(org.apache.calcite.rex.RexLocalRef localRef)
     

    Methods inherited from class org.apache.calcite.rex.RexVisitorImpl

    visitArrayAnd, visitArrayOr, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitOver, visitPatternFieldRef, visitRangeRef, visitSubQuery, visitTableInputRef

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.calcite.rex.RexVisitor

    visitEach, visitList, visitList
  • Field Details

    • mustHave

      public final int mustHave
    • isDisableInListOptimizationPresent

      public final boolean isDisableInListOptimizationPresent
  • Constructor Details

    • KuduFilterVisitor

      public KuduFilterVisitor(int mustHave, boolean isDisableInListOptimizationPresent)
  • Method Details

    • visitInputRef

      public Boolean visitInputRef(org.apache.calcite.rex.RexInputRef inputRef)
      Specified by:
      visitInputRef in interface org.apache.calcite.rex.RexVisitor<Boolean>
      Overrides:
      visitInputRef in class org.apache.calcite.rex.RexVisitorImpl<Boolean>
    • visitLocalRef

      public Boolean visitLocalRef(org.apache.calcite.rex.RexLocalRef localRef)
      Specified by:
      visitLocalRef in interface org.apache.calcite.rex.RexVisitor<Boolean>
      Overrides:
      visitLocalRef in class org.apache.calcite.rex.RexVisitorImpl<Boolean>
    • visitLiteral

      public Boolean visitLiteral(org.apache.calcite.rex.RexLiteral literal)
      Specified by:
      visitLiteral in interface org.apache.calcite.rex.RexVisitor<Boolean>
      Overrides:
      visitLiteral in class org.apache.calcite.rex.RexVisitorImpl<Boolean>
    • visitCall

      public Boolean visitCall(org.apache.calcite.rex.RexCall call)
      Specified by:
      visitCall in interface org.apache.calcite.rex.RexVisitor<Boolean>
      Overrides:
      visitCall in class org.apache.calcite.rex.RexVisitorImpl<Boolean>