Package | Description |
---|---|
org.apache.calcite.sql.advise |
Provides hints and corrections for editing SQL statements.
|
org.apache.calcite.sql.validate |
SQL validation.
|
org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Set<SqlValidatorNamespace> |
SqlAdvisorValidator.activeNamespaces |
Modifier and Type | Method and Description |
---|---|
protected void |
SqlAdvisorValidator.validateNamespace(SqlValidatorNamespace namespace,
RelDataType targetRowType) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractNamespace
Abstract implementation of
SqlValidatorNamespace . |
class |
AliasNamespace
Namespace for an
AS t(c1, c2, ...) clause. |
class |
CollectNamespace
Namespace for COLLECT and TABLE constructs.
|
class |
DelegatingNamespace
An implementation of
SqlValidatorNamespace that delegates all methods
to an underlying object. |
(package private) class |
FieldNamespace
Implementation of
SqlValidatorNamespace for a field of a record. |
class |
IdentifierNamespace
Namespace whose contents are defined by the type of an
identifier . |
(package private) class |
JoinNamespace
Namespace representing the row type produced by joining two relations.
|
class |
MatchRecognizeNamespace
Namespace for a
MATCH_RECOGNIZE clause. |
(package private) class |
ParameterNamespace
Namespace representing the type of a dynamic parameter.
|
class |
ProcedureNamespace
Namespace whose contents are defined by the result of a call to a
user-defined procedure.
|
(package private) class |
SchemaNamespace
Namespace based on a schema.
|
class |
SelectNamespace
Namespace offered by a sub-query.
|
class |
SetopNamespace
Namespace based upon a set operation (UNION, INTERSECT, EXCEPT).
|
private static class |
SqlValidatorImpl.DeleteNamespace
Namespace for a DELETE statement.
|
static class |
SqlValidatorImpl.DmlNamespace
Common base class for DML statement namespaces.
|
private static class |
SqlValidatorImpl.InsertNamespace
Namespace for an INSERT statement.
|
private static class |
SqlValidatorImpl.MergeNamespace
Namespace for a MERGE statement.
|
private static class |
SqlValidatorImpl.UpdateNamespace
Namespace for an UPDATE statement.
|
class |
TableConstructorNamespace
Namespace for a table constructor
VALUES (expr, expr, ...) . |
(package private) class |
TableNamespace
Namespace based on a table from the catalog.
|
(package private) class |
UnnestNamespace
Namespace for UNNEST.
|
(package private) class |
WithItemNamespace
Very similar to
AliasNamespace . |
class |
WithNamespace
Namespace for
WITH clause. |
Modifier and Type | Field and Description |
---|---|
protected SqlValidatorNamespace |
DelegatingNamespace.namespace |
SqlValidatorNamespace |
SqlValidatorScope.Resolve.namespace |
(package private) SqlValidatorNamespace |
ScopeChild.namespace |
SqlValidatorNamespace |
SqlQualified.namespace |
private SqlValidatorNamespace |
IdentifierNamespace.resolvedNamespace
The underlying namespace.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<SqlNode,SqlValidatorNamespace> |
SqlValidatorImpl.namespaces
|
Modifier and Type | Method and Description |
---|---|
private SqlValidatorNamespace |
SqlValidatorImpl.getNamespace(SqlIdentifier id,
DelegatingScope scope) |
SqlValidatorNamespace |
SqlValidator.getNamespace(SqlNode node)
Finds the namespace corresponding to a given node.
|
SqlValidatorNamespace |
SqlValidatorImpl.getNamespace(SqlNode node) |
private SqlValidatorNamespace |
SqlValidatorImpl.getNamespace(SqlNode node,
SqlValidatorScope scope) |
SqlValidatorNamespace |
DelegatingScope.getTableNamespace(java.util.List<java.lang.String> names) |
SqlValidatorNamespace |
SqlValidatorScope.getTableNamespace(java.util.List<java.lang.String> names)
Deprecated.
|
SqlValidatorNamespace |
WithScope.getTableNamespace(java.util.List<java.lang.String> names) |
SqlValidatorNamespace |
EmptyScope.getTableNamespace(java.util.List<java.lang.String> names) |
static SqlValidatorNamespace |
SqlValidatorUtil.lookup(SqlValidatorScope scope,
java.util.List<java.lang.String> names)
Resolves a multi-part identifier such as "SCHEMA.EMP.EMPNO" to a
namespace.
|
SqlValidatorNamespace |
DelegatingNamespace.lookupChild(java.lang.String name) |
SqlValidatorNamespace |
FieldNamespace.lookupChild(java.lang.String name) |
SqlValidatorNamespace |
AbstractNamespace.lookupChild(java.lang.String name) |
SqlValidatorNamespace |
SqlValidatorNamespace.lookupChild(java.lang.String name)
Looks up a child namespace of a given name.
|
(package private) SqlValidatorNamespace |
SqlValidatorImpl.lookupFieldNamespace(RelDataType rowType,
java.lang.String name) |
SqlValidatorNamespace |
IdentifierNamespace.resolve() |
SqlValidatorNamespace |
AbstractNamespace.resolve() |
SqlValidatorNamespace |
SqlValidatorNamespace.resolve()
If this namespace resolves to another namespace, returns that namespace,
following links to the end of the chain.
|
private SqlValidatorNamespace |
IdentifierNamespace.resolveImpl(SqlIdentifier id) |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<SqlValidatorNamespace> |
SqlValidatorUtil.children(SqlValidatorScope scope) |
Pair<java.lang.String,SqlValidatorNamespace> |
ListScope.findQualifyingTableName(java.lang.String columnName,
SqlNode ctx) |
Pair<java.lang.String,SqlValidatorNamespace> |
DelegatingScope.findQualifyingTableName(java.lang.String columnName,
SqlNode ctx) |
Pair<java.lang.String,SqlValidatorNamespace> |
SqlValidatorScope.findQualifyingTableName(java.lang.String columnName,
SqlNode ctx)
|
Pair<java.lang.String,SqlValidatorNamespace> |
EmptyScope.findQualifyingTableName(java.lang.String columnName,
SqlNode ctx) |
java.util.List<SqlValidatorNamespace> |
ListScope.getChildren()
Returns an immutable list of child namespaces.
|
Modifier and Type | Method and Description |
---|---|
void |
ListScope.addChild(SqlValidatorNamespace ns,
java.lang.String alias,
boolean nullable) |
void |
DelegatingScope.addChild(SqlValidatorNamespace ns,
java.lang.String alias,
boolean nullable) |
void |
SqlValidatorScope.addChild(SqlValidatorNamespace ns,
java.lang.String alias,
boolean nullable)
Registers a relation in this scope.
|
void |
EmptyScope.addChild(SqlValidatorNamespace ns,
java.lang.String alias,
boolean nullable) |
void |
JoinScope.addChild(SqlValidatorNamespace ns,
java.lang.String alias,
boolean nullable) |
protected void |
DelegatingScope.addColumnNames(SqlValidatorNamespace ns,
java.util.List<SqlMoniker> colNames) |
static SqlQualified |
SqlQualified.create(SqlValidatorScope scope,
int prefixLength,
SqlValidatorNamespace namespace,
SqlIdentifier identifier) |
void |
SqlValidatorScope.Resolved.found(SqlValidatorNamespace namespace,
boolean nullable,
SqlValidatorScope scope,
SqlValidatorScope.Path path,
java.util.List<java.lang.String> remainingNames) |
void |
SqlValidatorScope.ResolvedImpl.found(SqlValidatorNamespace namespace,
boolean nullable,
SqlValidatorScope scope,
SqlValidatorScope.Path path,
java.util.List<java.lang.String> remainingNames) |
static RelOptTable |
SqlValidatorUtil.getRelOptTable(SqlValidatorNamespace namespace,
Prepare.CatalogReader catalogReader,
java.lang.String datasetName,
boolean[] usedDataset)
Converts a
SqlValidatorScope into a RelOptTable . |
private void |
SqlValidatorImpl.lookupSelectHints(SqlValidatorNamespace ns,
SqlParserPos pos,
java.util.Collection<SqlMoniker> hintList) |
protected void |
SqlValidatorImpl.registerNamespace(SqlValidatorScope usingScope,
java.lang.String alias,
SqlValidatorNamespace ns,
boolean forceNullable)
Registers a new namespace, and adds it as a child of its parent scope.
|
(package private) void |
DelegatingScope.resolveInNamespace(SqlValidatorNamespace ns,
boolean nullable,
java.util.List<java.lang.String> names,
SqlNameMatcher nameMatcher,
SqlValidatorScope.Path path,
SqlValidatorScope.Resolved resolved)
If a record type allows implicit references to fields, recursively looks
into the fields.
|
protected void |
SqlValidatorImpl.validateNamespace(SqlValidatorNamespace namespace,
RelDataType targetRowType)
Validates a namespace.
|
Constructor and Description |
---|
DelegatingNamespace(SqlValidatorNamespace namespace)
Creates a DelegatingNamespace.
|
Resolve(SqlValidatorNamespace namespace,
boolean nullable,
SqlValidatorScope scope,
SqlValidatorScope.Path path,
java.util.List<java.lang.String> remainingNames) |
ScopeChild(int ordinal,
java.lang.String name,
SqlValidatorNamespace namespace,
boolean nullable)
Creates a ScopeChild.
|
SqlQualified(SqlValidatorScope scope,
int prefixLength,
SqlValidatorNamespace namespace,
SqlIdentifier identifier) |
Modifier and Type | Method and Description |
---|---|
private RexNode |
SqlToRelConverter.convertJoinCondition(SqlToRelConverter.Blackboard bb,
SqlValidatorNamespace leftNamespace,
SqlValidatorNamespace rightNamespace,
SqlNode condition,
JoinConditionType conditionType,
RelNode leftRel,
RelNode rightRel) |
private RexNode |
SqlToRelConverter.convertUsing(SqlValidatorNamespace leftNamespace,
SqlValidatorNamespace rightNamespace,
java.util.List<java.lang.String> nameList)
Returns an expression for matching columns of a USING clause or inferred
from NATURAL JOIN.
|
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.