Package org.apache.calcite.sql2rel
Class CorrelationReferenceFinder
- java.lang.Object
-
- org.apache.calcite.rel.RelShuttleImpl
-
- org.apache.calcite.rel.RelHomogeneousShuttle
-
- org.apache.calcite.sql2rel.CorrelationReferenceFinder
-
- All Implemented Interfaces:
RelShuttle
public abstract class CorrelationReferenceFinder extends RelHomogeneousShuttle
Shuttle that finds references to a givenCorrelationId
within a tree ofRelNode
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
CorrelationReferenceFinder.MyRexVisitor
Replaces alternative names of correlation variable to its canonical name.
-
Field Summary
Fields Modifier and Type Field Description private CorrelationReferenceFinder.MyRexVisitor
rexVisitor
-
Fields inherited from class org.apache.calcite.rel.RelShuttleImpl
stack
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CorrelationReferenceFinder()
Creates CorrelationReferenceFinder.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract RexNode
handle(RexFieldAccess fieldAccess)
RelNode
visit(RelNode other)
-
Methods inherited from class org.apache.calcite.rel.RelHomogeneousShuttle
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Methods inherited from class org.apache.calcite.rel.RelShuttleImpl
visitChild, visitChildren
-
-
-
-
Field Detail
-
rexVisitor
private final CorrelationReferenceFinder.MyRexVisitor rexVisitor
-
-
Method Detail
-
handle
protected abstract RexNode handle(RexFieldAccess fieldAccess)
-
visit
public RelNode visit(RelNode other)
- Specified by:
visit
in interfaceRelShuttle
- Overrides:
visit
in classRelShuttleImpl
-
-