Class CommonPhysicalMatchRule

java.lang.Object
org.apache.calcite.plan.RelOptRule
org.apache.calcite.plan.RelRule<org.apache.calcite.rel.convert.ConverterRule.Config>
org.apache.calcite.rel.convert.ConverterRule
org.apache.flink.table.planner.plan.rules.physical.common.CommonPhysicalMatchRule
Direct Known Subclasses:
BatchPhysicalMatchRule

public abstract class CommonPhysicalMatchRule extends org.apache.calcite.rel.convert.ConverterRule
The physical rule is responsible for converting FlinkLogicalMatch to physical Match rel.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.calcite.rel.convert.ConverterRule

    org.apache.calcite.rel.convert.ConverterRule.Config

    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 inherited from class org.apache.calcite.rel.convert.ConverterRule

    out

    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
    Constructor
    Description
    CommonPhysicalMatchRule(Class<? extends org.apache.calcite.rel.RelNode> clazz, org.apache.calcite.plan.RelTrait in, org.apache.calcite.plan.RelTrait out, String descriptionPrefix)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.calcite.rel.RelNode
    convert(org.apache.calcite.rel.RelNode rel, FlinkConvention convention)
     
    protected abstract org.apache.calcite.rel.RelNode
    convertToPhysicalMatch(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode convertInput, MatchRecognize matchRecognize, org.apache.calcite.rel.type.RelDataType rowType)
     
    boolean
    matches(org.apache.calcite.plan.RelOptRuleCall call)
     

    Methods inherited from class org.apache.calcite.rel.convert.ConverterRule

    convert, getInTrait, getOutConvention, getOutTrait, getTraitDef, isGuaranteed, onMatch

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

    any, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, hashCode, 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

    • CommonPhysicalMatchRule

      public CommonPhysicalMatchRule(Class<? extends org.apache.calcite.rel.RelNode> clazz, org.apache.calcite.plan.RelTrait in, org.apache.calcite.plan.RelTrait out, String descriptionPrefix)
  • Method Details

    • matches

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

      public org.apache.calcite.rel.RelNode convert(org.apache.calcite.rel.RelNode rel, FlinkConvention convention)
      Overrides:
      convert in class org.apache.calcite.plan.RelOptRule
    • convertToPhysicalMatch

      protected abstract org.apache.calcite.rel.RelNode convertToPhysicalMatch(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode convertInput, MatchRecognize matchRecognize, org.apache.calcite.rel.type.RelDataType rowType)