Class KuduSortRule

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.calcite.plan.RelOptRule FILTER_SORT_RULE  
      protected List<Integer> pkSortColumns  
      static org.apache.calcite.plan.RelOptRule SIMPLE_SORT_RULE  
      • Fields inherited from class org.apache.calcite.plan.RelOptRule

        description, operands, relBuilderFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      KuduSortRule​(org.apache.calcite.plan.RelOptRuleOperand operand, org.apache.calcite.tools.RelBuilderFactory factory, String description)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canApply​(org.apache.calcite.plan.RelTraitSet sortTraits, org.apache.calcite.rex.RexNode offset, KuduQuery query, org.apache.kudu.client.KuduTable openedTable, Optional<org.apache.calcite.rel.core.Filter> filter)  
      void perform​(org.apache.calcite.plan.RelOptRuleCall call, org.apache.calcite.rel.core.Sort originalSort, KuduQuery query, org.apache.kudu.client.KuduTable openedTable, Optional<org.apache.calcite.rel.core.Filter> filter)  
      • Methods inherited from class org.apache.calcite.plan.RelOptRule

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

      • SIMPLE_SORT_RULE

        public static final org.apache.calcite.plan.RelOptRule SIMPLE_SORT_RULE
      • FILTER_SORT_RULE

        public static final org.apache.calcite.plan.RelOptRule FILTER_SORT_RULE
    • Constructor Detail

      • KuduSortRule

        public KuduSortRule​(org.apache.calcite.plan.RelOptRuleOperand operand,
                            org.apache.calcite.tools.RelBuilderFactory factory,
                            String description)
    • Method Detail

      • canApply

        public boolean canApply​(org.apache.calcite.plan.RelTraitSet sortTraits,
                                org.apache.calcite.rex.RexNode offset,
                                KuduQuery query,
                                org.apache.kudu.client.KuduTable openedTable,
                                Optional<org.apache.calcite.rel.core.Filter> filter)
      • perform

        public void perform​(org.apache.calcite.plan.RelOptRuleCall call,
                            org.apache.calcite.rel.core.Sort originalSort,
                            KuduQuery query,
                            org.apache.kudu.client.KuduTable openedTable,
                            Optional<org.apache.calcite.rel.core.Filter> filter)