Package org.apache.calcite.sql2rel
Class DeduplicateCorrelateVariables
java.lang.Object
org.apache.calcite.rel.RelShuttleImpl
org.apache.calcite.rel.RelHomogeneousShuttle
org.apache.calcite.sql2rel.DeduplicateCorrelateVariables
- All Implemented Interfaces:
RelShuttle
Rewrites relations to ensure the same correlation is referenced by the same
correlation variable.
-
Field Summary
Fields inherited from class org.apache.calcite.rel.RelShuttleImpl
stack
-
Method Summary
Modifier and TypeMethodDescriptionstatic RelNode
go
(RexBuilder builder, CorrelationId canonicalId, Iterable<? extends CorrelationId> alternateIds, RelNode r) Rewrites a relational expression, replacing alternate correlation variables with a canonical correlation variable.Methods inherited from class org.apache.calcite.rel.RelHomogeneousShuttle
visit, visit, 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
-
Method Details
-
go
public static RelNode go(RexBuilder builder, CorrelationId canonicalId, Iterable<? extends CorrelationId> alternateIds, RelNode r) Rewrites a relational expression, replacing alternate correlation variables with a canonical correlation variable. -
visit
- Specified by:
visit
in interfaceRelShuttle
- Overrides:
visit
in classRelShuttleImpl
-