Package org.apache.calcite.sql2rel
@DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=FIELD) @DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=PARAMETER) @DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=RETURN)
package org.apache.calcite.sql2rel
Translates a SQL parse tree to relational expression.
-
ClassDescriptionConverts an expression for a group window function (e.g.Simple implementation of
AuxiliaryConverter
.Shuttle that finds references to a givenCorrelationId
within a tree ofRelNode
s.Rewrites relations to ensure the same correlation is referenced by the same correlation variable.Provides context forInitializerExpressionFactory
methods.InitializerExpressionFactory supplies default values for INSERT, UPDATE, and NEW.An implementation ofInitializerExpressionFactory
that always supplies NULL.Implementation ofSqlRexConvertletTable
which uses reflection to call any method of the formpublic RexNode convertXxx(ConvertletContext, SqlNode)
orpublic RexNode convertXxx(ConvertletContext, SqlOperator, SqlCall)
.RelDecorrelator replaces all correlated expressions (corExp) in a relational expression (RelNode) tree with non-correlated expressions that are produced from joining the RelNode that produces the corExp with the RelNode that references it.Planner rule that adjusts projects when counts are added.Rule configuration.Base configuration for rules that are non-static in a RelDecorrelator.Builds aRelDecorrelator.CorelMap
.Planner rule that removes correlations for scalar aggregates.Rule configuration.Planner rule that removes correlations for scalar projects.Rule configuration.Rule to remove an Aggregate with SINGLE_VALUE.Rule configuration.Transformer that walks over a tree of relational expressions, replacing eachRelNode
with a 'slimmed down' relational expression that projects only the columns required by its consumer.Result of an attempt to trim columns from a relational expression.RelStructuredTypeFlattener removes all structured types from a tree of relational expressions.Mix-in interface for relational expressions that know how to flatten themselves.Standard implementation ofSqlNodeToRexConverter
.Contains the context necessary for aSqlRexConvertlet
to convert aSqlNode
expression into aRexNode
.Collection ofSqlRexConvertlet
s.Interface to define the configuration for a SqlToRelConverter.Visitor that looks for an SqlIdentifier inside a tree ofSqlNode
objects and returnBoolean.TRUE
when it finds one.Standard implementation ofSqlRexConvertletTable
.SubQueryConverter provides the interface for classes that convert sub-queries into equivalent expressions.