Package org.apache.calcite.sql.util
Class SqlBasicVisitor<R>
java.lang.Object
org.apache.calcite.sql.util.SqlBasicVisitor<R>
- Type Parameters:
R
- Return type
- All Implemented Interfaces:
SqlVisitor<R>
- Direct Known Subclasses:
SqlShuttle
,Util.OverFinder
Basic implementation of
SqlVisitor
which does nothing at each node.
This class is useful as a base class for classes which implement the
SqlVisitor
interface. The derived class can override whichever
methods it chooses.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Argument handler.static class
Default implementation ofSqlBasicVisitor.ArgHandler
which merely callsSqlNode.accept(org.apache.calcite.sql.util.SqlVisitor<R>)
on each operand. -
Constructor Summary
-
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.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
-
SqlBasicVisitor
public SqlBasicVisitor()
-
-
Method Details
-
visit
Description copied from interface:SqlVisitor
Visits a literal.- Specified by:
visit
in interfaceSqlVisitor<R>
- Parameters:
literal
- Literal- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits a call to aSqlOperator
.- Specified by:
visit
in interfaceSqlVisitor<R>
- Parameters:
call
- Call- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits a list ofSqlNode
objects.- Specified by:
visit
in interfaceSqlVisitor<R>
- Parameters:
nodeList
- list of nodes- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits an identifier.- Specified by:
visit
in interfaceSqlVisitor<R>
- Parameters:
id
- identifier- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits a datatype specification.- Specified by:
visit
in interfaceSqlVisitor<R>
- Parameters:
type
- datatype specification- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits a dynamic parameter.- Specified by:
visit
in interfaceSqlVisitor<R>
- Parameters:
param
- Dynamic parameter- See Also:
-
visit
Description copied from interface:SqlVisitor
Visits an interval qualifier.- Specified by:
visit
in interfaceSqlVisitor<R>
- Parameters:
intervalQualifier
- Interval qualifier- See Also:
-