Package org.apache.calcite.sql.util
Class SqlShuttle
java.lang.Object
org.apache.calcite.sql.util.SqlBasicVisitor<@Nullable SqlNode>
org.apache.calcite.sql.util.SqlShuttle
- All Implemented Interfaces:
SqlVisitor<SqlNode>
- Direct Known Subclasses:
SqlScopedShuttle
Basic implementation of
SqlVisitor
which returns each leaf node
unchanged.
This class is useful as a base class for classes which implement the
SqlVisitor
interface and have SqlNode
as the return type. The
derived class can override whichever methods it chooses.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Implementation ofSqlBasicVisitor.ArgHandler
that deep-copiesSqlCall
s and their operands.Nested classes/interfaces inherited from class org.apache.calcite.sql.util.SqlBasicVisitor
SqlBasicVisitor.ArgHandler<R>, SqlBasicVisitor.ArgHandlerImpl<R>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable SqlNode
Visits a call to aSqlOperator
.@Nullable SqlNode
visit
(SqlDataTypeSpec type) Visits a datatype specification.@Nullable SqlNode
visit
(SqlDynamicParam param) Visits a dynamic parameter.@Nullable SqlNode
visit
(SqlIdentifier id) Visits an identifier.@Nullable SqlNode
visit
(SqlIntervalQualifier intervalQualifier) Visits an interval qualifier.@Nullable SqlNode
visit
(SqlLiteral literal) Visits a literal.@Nullable SqlNode
visit
(SqlNodeList nodeList) Visits a list ofSqlNode
objects.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.sql.util.SqlVisitor
visitNode
-
Constructor Details
-
SqlShuttle
public SqlShuttle()
-
-
Method Details
-
visit
Description copied from interface:SqlVisitor
Visits a literal.- Specified by:
visit
in interfaceSqlVisitor<SqlNode>
- Overrides:
visit
in classSqlBasicVisitor<@Nullable SqlNode>
- Parameters:
literal
- Literal- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits an identifier.- Specified by:
visit
in interfaceSqlVisitor<SqlNode>
- Overrides:
visit
in classSqlBasicVisitor<@Nullable SqlNode>
- Parameters:
id
- identifier- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits a datatype specification.- Specified by:
visit
in interfaceSqlVisitor<SqlNode>
- Overrides:
visit
in classSqlBasicVisitor<@Nullable SqlNode>
- Parameters:
type
- datatype specification- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits a dynamic parameter.- Specified by:
visit
in interfaceSqlVisitor<SqlNode>
- Overrides:
visit
in classSqlBasicVisitor<@Nullable SqlNode>
- Parameters:
param
- Dynamic parameter- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits an interval qualifier.- Specified by:
visit
in interfaceSqlVisitor<SqlNode>
- Overrides:
visit
in classSqlBasicVisitor<@Nullable SqlNode>
- Parameters:
intervalQualifier
- Interval qualifier- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits a call to aSqlOperator
.- Specified by:
visit
in interfaceSqlVisitor<SqlNode>
- Overrides:
visit
in classSqlBasicVisitor<@Nullable SqlNode>
- Parameters:
call
- Call- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits a list ofSqlNode
objects.- Specified by:
visit
in interfaceSqlVisitor<SqlNode>
- Overrides:
visit
in classSqlBasicVisitor<@Nullable SqlNode>
- Parameters:
nodeList
- list of nodes- See Also:
-