| Package | Description |
|---|---|
| org.apache.calcite.sql.advise |
Provides hints and corrections for editing SQL statements.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SqlAdvisorValidator.validateNamespace(SqlValidatorNamespace namespace) |
| Modifier and Type | Class and Description |
|---|---|
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. |
class |
IdentifierNamespace
Namespace whose contents are defined by the type of an
identifier. |
class |
ProcedureNamespace
Namespace whose contents are defined by the result of a call to a
user-defined procedure.
|
class |
SelectNamespace
Namespace offered by a subquery.
|
class |
SetopNamespace
Namespace based upon a set operation (UNION, INTERSECT, EXCEPT).
|
static class |
SqlValidatorImpl.DmlNamespace
Common base class for DML statement namespaces.
|
class |
TableConstructorNamespace
Namespace for a table constructor
VALUES (expr, expr, ...). |
class |
WithNamespace
Namespace for
WITH clause. |
| Modifier and Type | Field and Description |
|---|---|
SqlValidatorNamespace |
SqlQualified.namespace |
protected SqlValidatorNamespace |
DelegatingNamespace.namespace |
| Modifier and Type | Field and Description |
|---|---|
protected List<Pair<String,SqlValidatorNamespace>> |
ListScope.children
List of child
SqlValidatorNamespace objects and their names. |
protected Map<SqlNode,SqlValidatorNamespace> |
SqlValidatorImpl.namespaces
|
| Modifier and Type | Method and Description |
|---|---|
protected SqlValidatorNamespace |
ListScope.getChild(List<String> names)
Returns a child namespace that matches a fully-qualified list of names.
|
protected SqlValidatorNamespace |
ListScope.getChild(String alias) |
SqlValidatorNamespace |
SqlValidatorImpl.getNamespace(SqlNode node) |
SqlValidatorNamespace |
SqlValidator.getNamespace(SqlNode node)
Finds the namespace corresponding to a given node.
|
SqlValidatorNamespace |
SqlValidatorScope.getTableNamespace(List<String> names)
Looks up a table in this scope from its name.
|
SqlValidatorNamespace |
DelegatingScope.getTableNamespace(List<String> names) |
static SqlValidatorNamespace |
SqlValidatorUtil.lookup(SqlValidatorScope scope,
List<String> names)
Resolves a multi-part identifier such as "SCHEMA.EMP.EMPNO" to a
namespace.
|
SqlValidatorNamespace |
SqlValidatorNamespace.lookupChild(String name)
Looks up a child namespace of a given name.
|
SqlValidatorNamespace |
DelegatingNamespace.lookupChild(String name) |
SqlValidatorNamespace |
SqlValidatorNamespace.resolve()
If this namespace resolves to another namespace, returns that namespace,
following links to the end of the chain.
|
SqlValidatorNamespace |
IdentifierNamespace.resolve() |
SqlValidatorNamespace |
SqlValidatorScope.resolve(List<String> names,
SqlValidatorScope[] ancestorOut,
int[] offsetOut)
Looks up a node with a given name.
|
SqlValidatorNamespace |
DelegatingScope.resolve(List<String> names,
SqlValidatorScope[] ancestorOut,
int[] offsetOut) |
SqlValidatorNamespace |
ListScope.resolve(List<String> names,
SqlValidatorScope[] ancestorOut,
int[] offsetOut) |
SqlValidatorNamespace |
ParameterScope.resolve(List<String> names,
SqlValidatorScope[] ancestorOut,
int[] offsetOut) |
| Modifier and Type | Method and Description |
|---|---|
Pair<String,SqlValidatorNamespace> |
SqlValidatorScope.findQualifyingTableName(String columnName,
SqlNode ctx)
Finds the table alias which is implicitly qualifying an unqualified
column name.
|
Pair<String,SqlValidatorNamespace> |
DelegatingScope.findQualifyingTableName(String columnName,
SqlNode ctx) |
Pair<String,SqlValidatorNamespace> |
ListScope.findQualifyingTableName(String columnName,
SqlNode ctx) |
List<SqlValidatorNamespace> |
ListScope.getChildren()
Returns an immutable list of child namespaces.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlValidatorScope.addChild(SqlValidatorNamespace ns,
String alias)
Registers a relation in this scope.
|
void |
DelegatingScope.addChild(SqlValidatorNamespace ns,
String alias) |
void |
ListScope.addChild(SqlValidatorNamespace ns,
String alias) |
void |
JoinScope.addChild(SqlValidatorNamespace ns,
String alias) |
protected void |
DelegatingScope.addColumnNames(SqlValidatorNamespace ns,
List<SqlMoniker> colNames) |
static SqlQualified |
SqlQualified.create(SqlValidatorScope scope,
int prefixLength,
SqlValidatorNamespace namespace,
SqlIdentifier identifier) |
static RelOptTable |
SqlValidatorUtil.getRelOptTable(SqlValidatorNamespace namespace,
Prepare.CatalogReader catalogReader,
String datasetName,
boolean[] usedDataset)
Converts a
SqlValidatorScope into a RelOptTable. |
protected void |
SqlValidatorImpl.registerNamespace(SqlValidatorScope usingScope,
String alias,
SqlValidatorNamespace ns,
boolean forceNullable)
Registers a new namespace, and adds it as a child of its parent scope.
|
protected void |
SqlValidatorImpl.validateNamespace(SqlValidatorNamespace namespace)
Validates a namespace.
|
| Constructor and Description |
|---|
DelegatingNamespace(SqlValidatorNamespace namespace)
Creates a DelegatingNamespace.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.