Package org.apache.calcite.sql.util
Interface SqlVisitor<R>
- Type Parameters:
R
- Return type
- All Known Implementing Classes:
SqlBasicVisitor
,SqlScopedShuttle
,SqlShuttle
,SqlToRelConverter.Blackboard
,SqlToRelConverter.SqlIdentifierFinder
,SqlValidatorUtil.DeepCopier
,Util.OverFinder
public interface SqlVisitor<R>
Visitor class, follows the
visitor pattern
.
The type parameter R
is the return type of each
visit()
method. If the methods do not need to return a value, use
Void
.
-
Method Summary
Modifier and TypeMethodDescriptionVisits a call to aSqlOperator
.visit
(SqlDataTypeSpec type) Visits a datatype specification.visit
(SqlDynamicParam param) Visits a dynamic parameter.visit
(SqlIdentifier id) Visits an identifier.visit
(SqlIntervalQualifier intervalQualifier) Visits an interval qualifier.visit
(SqlLiteral literal) Visits a literal.visit
(SqlNodeList nodeList) Visits a list ofSqlNode
objects.default R
Asks aSqlNode
to accept this visitor.
-
Method Details
-
visit
Visits a literal.- Parameters:
literal
- Literal- See Also:
-
visit
Visits a call to aSqlOperator
.- Parameters:
call
- Call- See Also:
-
visit
Visits a list ofSqlNode
objects.- Parameters:
nodeList
- list of nodes- See Also:
-
visit
Visits an identifier.- Parameters:
id
- identifier- See Also:
-
visit
Visits a datatype specification.- Parameters:
type
- datatype specification- See Also:
-
visit
Visits a dynamic parameter.- Parameters:
param
- Dynamic parameter- See Also:
-
visit
Visits an interval qualifier.- Parameters:
intervalQualifier
- Interval qualifier- See Also:
-
visitNode
Asks aSqlNode
to accept this visitor.
-