Class FieldsReWriterUtil.FieldsReWriter

java.lang.Object
org.apache.calcite.rex.RexShuttle
org.apache.drill.exec.planner.logical.FieldsReWriterUtil.FieldsReWriter
All Implemented Interfaces:
org.apache.calcite.rex.RexVisitor<org.apache.calcite.rex.RexNode>
Enclosing class:
FieldsReWriterUtil

public static class FieldsReWriterUtil.FieldsReWriter extends org.apache.calcite.rex.RexShuttle
Replaces original node with provided in mapper, otherwise returns original node.
  • Constructor Summary

    Constructors
    Constructor
    Description
    FieldsReWriter(Map<org.apache.calcite.rex.RexNode,Integer> mapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.calcite.rex.RexNode
    visitCall(org.apache.calcite.rex.RexCall call)
     
    org.apache.calcite.rex.RexNode
    visitInputRef(org.apache.calcite.rex.RexInputRef inputRef)
     

    Methods inherited from class org.apache.calcite.rex.RexShuttle

    apply, apply, mutate, visitArray, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitFieldCollations, visitList, visitLiteral, visitLocalRef, visitOver, visitPatternFieldRef, visitRangeRef, visitSubQuery, visitTableInputRef, visitWindow

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.calcite.rex.RexVisitor

    visitEach, visitList, visitList
  • Constructor Details

    • FieldsReWriter

      public FieldsReWriter(Map<org.apache.calcite.rex.RexNode,Integer> mapper)
  • Method Details

    • visitCall

      public org.apache.calcite.rex.RexNode visitCall(org.apache.calcite.rex.RexCall call)
      Specified by:
      visitCall in interface org.apache.calcite.rex.RexVisitor<org.apache.calcite.rex.RexNode>
      Overrides:
      visitCall in class org.apache.calcite.rex.RexShuttle
    • visitInputRef

      public org.apache.calcite.rex.RexNode visitInputRef(org.apache.calcite.rex.RexInputRef inputRef)
      Specified by:
      visitInputRef in interface org.apache.calcite.rex.RexVisitor<org.apache.calcite.rex.RexNode>
      Overrides:
      visitInputRef in class org.apache.calcite.rex.RexShuttle