Class DrillRelOptUtil.RexFieldsTransformer

java.lang.Object
org.apache.drill.exec.planner.common.DrillRelOptUtil.RexFieldsTransformer
Enclosing class:
DrillRelOptUtil

public static class DrillRelOptUtil.RexFieldsTransformer extends Object
RexFieldsTransformer is a utility class used to convert column refs in a RexNode based on inputRefMap (input to output ref map). This transformer can be used to find and replace the existing inputRef in a RexNode with a new inputRef.
  • Constructor Details

    • RexFieldsTransformer

      public RexFieldsTransformer(org.apache.calcite.rex.RexBuilder rexBuilder, Map<Integer,Integer> inputRefMap)
  • Method Details

    • go

      public org.apache.calcite.rex.RexNode go(org.apache.calcite.rex.RexNode rex)