Class SortConvertPrule

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.drill.exec.planner.physical.SortConvertPrule

public class SortConvertPrule extends org.apache.calcite.rel.convert.ConverterRule
Rule that converts an Sort to a physical SortPrel, implemented by a Drill "order" operation. The Sort is added in optiq's AbstractConvert call, when it enforces certain "order" to the input stream. Drill uses this rule to convert such sort enforcer into physical SortPrel.
  • 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
    Modifier and Type
    Field
    Description
    static final org.apache.calcite.plan.RelOptRule
     

    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
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.calcite.rel.RelNode
    convert(org.apache.calcite.rel.RelNode r)
     
    boolean
    matches(org.apache.calcite.plan.RelOptRuleCall call)
     

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

    getInTrait, getOutConvention, getOutTrait, getTraitDef, isGuaranteed, onMatch

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

    any, convert, convert, 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
  • Field Details

    • INSTANCE

      public static final org.apache.calcite.plan.RelOptRule INSTANCE
  • 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 r)
      Specified by:
      convert in class org.apache.calcite.rel.convert.ConverterRule