Class KuduSortRule.KuduSortWithFilter

java.lang.Object
org.apache.calcite.plan.RelOptRule
com.twilio.kudu.sql.rules.KuduSortRule
com.twilio.kudu.sql.rules.KuduSortRule.KuduSortWithFilter
Enclosing class:
KuduSortRule

public static class KuduSortRule.KuduSortWithFilter extends KuduSortRule
Rule to match a Sort above Filter and it is above KuduQuery. Applies if sort matches primary key or if the primary key is required in the filter. Can match descending sorted tables as well CalciteKuduTable.getDescendingOrderedColumnIndexes()
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.twilio.kudu.sql.rules.KuduSortRule

    KuduSortRule.KuduFilterVisitor, KuduSortRule.KuduSortWithFilter, KuduSortRule.KuduSortWithoutFilter

    Nested classes/interfaces inherited from class org.apache.calcite.plan.RelOptRule

    org.apache.calcite.plan.RelOptRule.ConverterRelOptRuleOperand
  • Field Summary

    Fields inherited from class com.twilio.kudu.sql.rules.KuduSortRule

    FILTER_SORT_RULE, pkSortColumns, SIMPLE_SORT_RULE

    Fields inherited from class org.apache.calcite.plan.RelOptRule

    description, operands, relBuilderFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
    KuduSortWithFilter(org.apache.calcite.tools.RelBuilderFactory factory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMatch(org.apache.calcite.plan.RelOptRuleCall call)
     

    Methods inherited from class com.twilio.kudu.sql.rules.KuduSortRule

    canApply, perform

    Methods inherited from class org.apache.calcite.plan.RelOptRule

    any, convert, convert, convert, convert, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, operand, operand, operand, operand, operand, operandJ, operandJ, some, toString, unordered

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • KuduSortWithFilter

      public KuduSortWithFilter(org.apache.calcite.tools.RelBuilderFactory factory)
  • Method Details

    • onMatch

      public void onMatch(org.apache.calcite.plan.RelOptRuleCall call)
      Specified by:
      onMatch in class org.apache.calcite.plan.RelOptRule