Class 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 Detail

      • mustHave

        public final int mustHave
      • isDisableInListOptimizationPresent

        public final boolean isDisableInListOptimizationPresent
    • Constructor Detail

      • KuduFilterVisitor

        public KuduFilterVisitor​(int mustHave,
                                 boolean isDisableInListOptimizationPresent)
    • Method Detail

      • 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>