Uses of Interface
org.apache.calcite.sql.util.SqlVisitor
-
Packages that use SqlVisitor Package Description org.apache.calcite.sql Provides a SQL parser and object model.org.apache.calcite.sql.fun Defines the set of standard SQL row-level functions and operators.org.apache.calcite.sql.util Utility classes for the SQL object model, parsing, and validation.org.apache.calcite.sql.validate SQL validation.org.apache.calcite.sql2rel Translates a SQL parse tree to relational expression.org.apache.calcite.util Provides utility classes. -
-
Uses of SqlVisitor in org.apache.calcite.sql
Classes in org.apache.calcite.sql that implement SqlVisitor Modifier and Type Class Description private static class
SqlUtil.Genealogist
Walks over aSqlNode
tree and returns the ancestry stack when it finds a given node.Methods in org.apache.calcite.sql with parameters of type SqlVisitor Modifier and Type Method Description <R> R
SqlCall. accept(SqlVisitor<R> visitor)
<R> R
SqlDataTypeSpec. accept(SqlVisitor<R> visitor)
<R> R
SqlDynamicParam. accept(SqlVisitor<R> visitor)
<R> R
SqlIdentifier. accept(SqlVisitor<R> visitor)
<R> R
SqlIntervalQualifier. accept(SqlVisitor<R> visitor)
<R> R
SqlLiteral. accept(SqlVisitor<R> visitor)
abstract <R> R
SqlNode. accept(SqlVisitor<R> visitor)
Accepts a generic visitor.<R> R
SqlNodeList. accept(SqlVisitor<R> visitor)
<R> void
SqlAsOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
<R> void
SqlMatchRecognize.SqlMatchRecognizeOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
<R> R
SqlOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call)
Accepts aSqlVisitor
, visiting each operand of a call.<R> void
SqlOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
Accepts aSqlVisitor
, directing anSqlBasicVisitor.ArgHandler
to visit an operand of a call.<R> void
SqlOverOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
Accepts aSqlVisitor
, and tells it to visit each child.<R> void
SqlSelectOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
<R> void
SqlWindow.SqlWindowOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
-
Uses of SqlVisitor in org.apache.calcite.sql.fun
Classes in org.apache.calcite.sql.fun that implement SqlVisitor Modifier and Type Class Description private static class
SqlBetweenOperator.AndFinder
Finds an AND operator in an expression.Methods in org.apache.calcite.sql.fun with parameters of type SqlVisitor Modifier and Type Method Description <R> void
SqlDotOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
-
Uses of SqlVisitor in org.apache.calcite.sql.util
Classes in org.apache.calcite.sql.util that implement SqlVisitor Modifier and Type Class Description class
SqlBasicVisitor<R>
Basic implementation ofSqlVisitor
which does nothing at each node.class
SqlShuttle
Basic implementation ofSqlVisitor
which returns each leaf node unchanged.Methods in org.apache.calcite.sql.util with parameters of type SqlVisitor Modifier and Type Method Description R
SqlBasicVisitor.ArgHandler. visitChild(SqlVisitor<R> visitor, SqlNode expr, int i, SqlNode operand)
Visits a particular operand of a call, using a given visitor.R
SqlBasicVisitor.ArgHandlerImpl. visitChild(SqlVisitor<R> visitor, SqlNode expr, int i, SqlNode operand)
SqlNode
SqlShuttle.CallCopyingArgHandler. visitChild(SqlVisitor<SqlNode> visitor, SqlNode expr, int i, SqlNode operand)
-
Uses of SqlVisitor in org.apache.calcite.sql.validate
Classes in org.apache.calcite.sql.validate that implement SqlVisitor Modifier and Type Class Description (package private) class
AggChecker
Visitor which throws an exception if any component of the expression is not a group expression.(package private) class
AggFinder
Visitor that looks for an aggregate function inside a tree ofSqlNode
objects and throwsUtil.FoundOne
when it finds one.(package private) static class
AggFinder.AggIterable
Iterates over all aggregates.(package private) class
AggVisitor
Visitor that can find aggregate and windowed aggregate functions.class
SqlScopedShuttle
Refinement toSqlShuttle
which maintains a stack of scopes.private class
SqlValidatorImpl.DeriveTypeVisitor
Visitor which derives the type of a givenSqlNode
.private static class
SqlValidatorImpl.Expander
Converts an expression into canonical form by fully-qualifying any identifiers.(package private) static class
SqlValidatorImpl.ExtendedExpander
Shuttle which walks over an expression in the GROUP BY/HAVING clause, replacing usages of aliases or ordinals with the underlying expression.private static class
SqlValidatorImpl.NavigationExpander
Shuttle that expands navigation expressions in a MATCH_RECOGNIZE clause.private static class
SqlValidatorImpl.NavigationModifier
Modify the nodes in navigation function such as FIRST, LAST, PREV AND NEXT.private static class
SqlValidatorImpl.NavigationReplacer
Shuttle that replacesA as A.price > PREV(B.price)
withPREV(A.price, 0) > LAST(B.price, 0)
.(package private) class
SqlValidatorImpl.OrderExpressionExpander
Shuttle which walks over an expression in the ORDER BY clause, replacing usages of aliases with the underlying expression.private class
SqlValidatorImpl.PatternValidator
Within one navigation function, the pattern var should be sameprivate class
SqlValidatorImpl.PatternVarVisitor
retrieve pattern variables definedstatic class
SqlValidatorUtil.DeepCopier
Deprecated. -
Uses of SqlVisitor in org.apache.calcite.sql2rel
Classes in org.apache.calcite.sql2rel that implement SqlVisitor Modifier and Type Class Description protected class
SqlToRelConverter.AggConverter
Converts expressions to aggregates.private static class
SqlToRelConverter.AggregateFinder
Visitor that collects all aggregate functions in aSqlNode
tree.protected class
SqlToRelConverter.Blackboard
Workspace for translating an individual SELECT statement (or sub-SELECT). -
Uses of SqlVisitor in org.apache.calcite.util
Classes in org.apache.calcite.util that implement SqlVisitor Modifier and Type Class Description static class
Util.OverFinder
Visitor which looks for an OVER clause inside a tree ofSqlNode
objects.
-