Class SimpleRexRemap.FieldsMarker
java.lang.Object
org.apache.calcite.rex.RexVisitorImpl<PathSegment>
org.apache.drill.exec.planner.index.SimpleRexRemap.FieldsMarker
- All Implemented Interfaces:
org.apache.calcite.rex.RexVisitor<PathSegment>
- Enclosing class:
- SimpleRexRemap
public static class SimpleRexRemap.FieldsMarker
extends org.apache.calcite.rex.RexVisitorImpl<PathSegment>
This class go through the RexNode, collect all the fieldNames, mark starting positions(RexNode) of fields
so this information can be used later e,.g. replaced with a substitute node
-
Field Summary
Fields inherited from class org.apache.calcite.rex.RexVisitorImpl
deep
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvisitCall
(org.apache.calcite.rex.RexCall call) visitInputRef
(org.apache.calcite.rex.RexInputRef inputRef) Methods inherited from class org.apache.calcite.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitLiteral, visitLocalRef, visitOver, visitPatternFieldRef, visitRangeRef, visitSubQuery, visitTableInputRef
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
-
FieldsMarker
public FieldsMarker(org.apache.calcite.rel.type.RelDataType rowType)
-
-
Method Details
-
getFieldAndPos
-
visitInputRef
- Specified by:
visitInputRef
in interfaceorg.apache.calcite.rex.RexVisitor<PathSegment>
- Overrides:
visitInputRef
in classorg.apache.calcite.rex.RexVisitorImpl<PathSegment>
-
visitCall
- Specified by:
visitCall
in interfaceorg.apache.calcite.rex.RexVisitor<PathSegment>
- Overrides:
visitCall
in classorg.apache.calcite.rex.RexVisitorImpl<PathSegment>
-