| 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.
|
| Modifier and Type | Class and Description |
|---|---|
private static class |
SqlUtil.Genealogist
Walks over a
SqlNode tree and returns the
ancestry stack when it finds a given node. |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
SqlIdentifier.accept(SqlVisitor<R> visitor) |
<R> R |
SqlDynamicParam.accept(SqlVisitor<R> visitor) |
<R> R |
SqlCall.accept(SqlVisitor<R> visitor) |
<R> R |
SqlLiteral.accept(SqlVisitor<R> visitor) |
<R> R |
SqlIntervalQualifier.accept(SqlVisitor<R> visitor) |
abstract <R> R |
SqlNode.accept(SqlVisitor<R> visitor)
Accepts a generic visitor.
|
<R> R |
SqlNodeList.accept(SqlVisitor<R> visitor) |
<R> R |
SqlDataTypeSpec.accept(SqlVisitor<R> visitor) |
<R> R |
SqlOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call)
Accepts a
SqlVisitor, visiting each operand of a call. |
<R> void |
SqlOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler)
Accepts a
SqlVisitor, directing an
SqlBasicVisitor.ArgHandler
to visit an operand of a call. |
<R> void |
SqlWindow.SqlWindowOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler) |
<R> void |
SqlSelectOperator.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> void |
SqlOverOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler)
Accepts a
SqlVisitor, and tells it to visit each child. |
<R> void |
SqlAsOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler) |
| Modifier and Type | Class and Description |
|---|---|
private static class |
SqlBetweenOperator.AndFinder
Finds an AND operator in an expression.
|
| Modifier and Type | Method and Description |
|---|---|
<R> void |
SqlDotOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler) |
| Modifier and Type | Class and Description |
|---|---|
class |
SqlBasicVisitor<R>
Basic implementation of
SqlVisitor which does nothing at each node. |
class |
SqlShuttle
Basic implementation of
SqlVisitor which returns each leaf node
unchanged. |
| Modifier and Type | Method and 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) |
| Modifier and Type | Class and 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 of
SqlNode objects and throws Util.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 to
SqlShuttle which maintains a stack of scopes. |
private class |
SqlValidatorImpl.DeriveTypeVisitor
Visitor which derives the type of a given
SqlNode. |
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 replaces
A as A.price > PREV(B.price) with
PREV(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 same
|
private class |
SqlValidatorImpl.PatternVarVisitor
retrieve pattern variables defined
|
static class |
SqlValidatorUtil.DeepCopier
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
protected class |
SqlToRelConverter.AggConverter
Converts expressions to aggregates.
|
private static class |
SqlToRelConverter.AggregateFinder
Visitor that collects all aggregate functions in a
SqlNode tree. |
protected class |
SqlToRelConverter.Blackboard
Workspace for translating an individual SELECT statement (or sub-SELECT).
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Util.OverFinder
Visitor which looks for an OVER clause inside a tree of
SqlNode objects. |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.