Package org.apache.calcite.sql.validate
Class SqlScopedShuttle
java.lang.Object
org.apache.calcite.sql.util.SqlBasicVisitor<@Nullable SqlNode>
org.apache.calcite.sql.util.SqlShuttle
org.apache.calcite.sql.validate.SqlScopedShuttle
- All Implemented Interfaces:
- SqlVisitor<SqlNode>
- Direct Known Subclasses:
- SqlValidatorUtil.DeepCopier
Refinement to 
SqlShuttle which maintains a stack of scopes.
 Derived class should override visitScoped(SqlCall) rather than
 SqlVisitor.visit(SqlCall).
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.calcite.sql.util.SqlShuttleSqlShuttle.CallCopyingArgHandlerNested classes/interfaces inherited from class org.apache.calcite.sql.util.SqlBasicVisitorSqlBasicVisitor.ArgHandler<R>, SqlBasicVisitor.ArgHandlerImpl<R>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected SqlValidatorScopegetScope()Returns the current scope.final @Nullable SqlNodeVisits a call to aSqlOperator.protected @Nullable SqlNodevisitScoped(SqlCall call) Visits an operator call.Methods inherited from class org.apache.calcite.sql.util.SqlShuttlevisit, visit, visit, visit, visit, visitMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.sql.util.SqlVisitorvisitAll, visitNode
- 
Constructor Details- 
SqlScopedShuttle
 
- 
- 
Method Details- 
visitDescription copied from interface:SqlVisitorVisits a call to aSqlOperator.- Specified by:
- visitin interface- SqlVisitor<SqlNode>
- Overrides:
- visitin class- SqlShuttle
- Parameters:
- call- Call
- See Also:
 
- 
visitScopedVisits an operator call. If the call has entered a new scope, the base class will have already modified the scope.
- 
getScopeReturns the current scope.
 
-