Class KuduSortedAggregationRule


  • public class KuduSortedAggregationRule
    extends KuduSortRule
    Rule that matches a sort over an aggregation with both sort and aggregation using the same columns. The columns must be a prefix of the primary key of the table. This rule eliminates the need for sorting on the client.
    • Field Detail

      • SORTED_AGGREGATION_RULE

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

      • KuduSortedAggregationRule

        public KuduSortedAggregationRule​(org.apache.calcite.tools.RelBuilderFactory relBuilderFactory)
    • Method Detail

      • perform

        protected void perform​(org.apache.calcite.plan.RelOptRuleCall call,
                               org.apache.calcite.rel.core.Sort originalSort,
                               org.apache.calcite.rel.core.Aggregate originalAggregate,
                               KuduToEnumerableRel kuduToEnumerableRel,
                               org.apache.calcite.rel.core.Project project,
                               org.apache.calcite.rel.core.Filter filter,
                               KuduQuery query)
      • onMatch

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