Class FlinkJoinReorderRule

java.lang.Object
org.apache.calcite.plan.RelOptRule
org.apache.calcite.plan.RelRule<FlinkJoinReorderRule.Config>
org.apache.flink.table.planner.plan.rules.logical.FlinkJoinReorderRule
All Implemented Interfaces:
org.apache.calcite.rel.rules.TransformationRule

@Enclosing public class FlinkJoinReorderRule extends org.apache.calcite.plan.RelRule<FlinkJoinReorderRule.Config> implements org.apache.calcite.rel.rules.TransformationRule
Flink join reorder rule, which can change the join order of input relNode tree.

It is triggered by the (MultiJoin).

In this rule, there are two specific join reorder strategies can be chosen, one is LoptOptimizeJoinRule, another is FlinkBushyJoinReorderRule. Which rule is selected depends on the parameter OptimizerConfigOptions.TABLE_OPTIMIZER_BUSHY_JOIN_REORDER_THRESHOLD.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Rule configuration.

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

    org.apache.calcite.plan.RelRule.Done, org.apache.calcite.plan.RelRule.MatchHandler<R extends org.apache.calcite.plan.RelOptRule>, org.apache.calcite.plan.RelRule.OperandBuilder, org.apache.calcite.plan.RelRule.OperandDetailBuilder<R extends org.apache.calcite.rel.RelNode>, org.apache.calcite.plan.RelRule.OperandTransform

    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
     

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

    config

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

    description, operands, relBuilderFactory
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    FlinkJoinReorderRule(org.apache.calcite.rel.core.RelFactories.JoinFactory joinFactory, org.apache.calcite.rel.core.RelFactories.ProjectFactory projectFactory, org.apache.calcite.rel.core.RelFactories.FilterFactory filterFactory)
    Deprecated.
     
    FlinkJoinReorderRule(org.apache.calcite.tools.RelBuilderFactory relBuilderFactory)
    Deprecated.
    protected
    Creates an SparkJoinReorderRule.
  • Method Summary

    Modifier and Type
    Method
    Description
    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, 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
  • Field Details

  • Constructor Details

    • FlinkJoinReorderRule

      protected FlinkJoinReorderRule(FlinkJoinReorderRule.Config config)
      Creates an SparkJoinReorderRule.
    • FlinkJoinReorderRule

      @Deprecated public FlinkJoinReorderRule(org.apache.calcite.tools.RelBuilderFactory relBuilderFactory)
      Deprecated.
    • FlinkJoinReorderRule

      @Deprecated public FlinkJoinReorderRule(org.apache.calcite.rel.core.RelFactories.JoinFactory joinFactory, org.apache.calcite.rel.core.RelFactories.ProjectFactory projectFactory, org.apache.calcite.rel.core.RelFactories.FilterFactory filterFactory)
      Deprecated.
  • Method Details

    • onMatch

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