Class FlinkAggregateRemoveRule


  • public class FlinkAggregateRemoveRule
    extends org.apache.calcite.plan.RelOptRule
    Planner rule that removes a Aggregate if its aggregate functions are SUM, MIN, MAX, AUXILIARY_GROUP with no filterArgs, and the underlying relational expression is already distinct.
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      static FlinkAggregateRemoveRule INSTANCE  
      • Fields inherited from class org.apache.calcite.plan.RelOptRule

        description, operands, relBuilderFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      FlinkAggregateRemoveRule​(Class<? extends org.apache.calcite.rel.core.Aggregate> aggregateClass)
      Deprecated.
      FlinkAggregateRemoveRule​(Class<? extends org.apache.calcite.rel.core.Aggregate> aggregateClass, org.apache.calcite.tools.RelBuilderFactory relBuilderFactory)
      Creates an FlinkAggregateRemoveRule.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(org.apache.calcite.plan.RelOptRuleCall call)  
      void onMatch​(org.apache.calcite.plan.RelOptRuleCall call)  
      • Methods inherited from class org.apache.calcite.plan.RelOptRule

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

      • FlinkAggregateRemoveRule

        @Deprecated
        public FlinkAggregateRemoveRule​(Class<? extends org.apache.calcite.rel.core.Aggregate> aggregateClass)
        Deprecated.
      • FlinkAggregateRemoveRule

        public FlinkAggregateRemoveRule​(Class<? extends org.apache.calcite.rel.core.Aggregate> aggregateClass,
                                        org.apache.calcite.tools.RelBuilderFactory relBuilderFactory)
        Creates an FlinkAggregateRemoveRule.
    • Method Detail

      • matches

        public boolean matches​(org.apache.calcite.plan.RelOptRuleCall call)
        Overrides:
        matches in class org.apache.calcite.plan.RelOptRule
      • onMatch

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