| Package | Description |
|---|---|
| org.apache.calcite.prepare |
Preparation of queries (parsing, planning and implementation).
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| Modifier and Type | Field and Description |
|---|---|
protected SqlNameMatcher |
CalciteCatalogReader.nameMatcher |
| Modifier and Type | Method and Description |
|---|---|
SqlNameMatcher |
CalciteCatalogReader.nameMatcher() |
| Constructor and Description |
|---|
CalciteCatalogReader(CalciteSchema rootSchema,
SqlNameMatcher nameMatcher,
List<List<String>> schemaPaths,
RelDataTypeFactory typeFactory,
CalciteConnectionConfig config) |
| Modifier and Type | Class and Description |
|---|---|
private static class |
SqlNameMatchers.BaseMatcher
Partial implementation of
SqlNameMatcher. |
private static class |
SqlNameMatchers.LiberalNameMatcher
Matcher that remembers the requests that were made of it.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlNameMatcher |
SqlNameMatchers.liberal()
Creates a name matcher that can suggest corrections to what the user
typed.
|
SqlNameMatcher |
SqlValidatorCatalogReader.nameMatcher()
Returns an implementation of
SqlNameMatcher
that matches the case-sensitivity policy. |
static SqlNameMatcher |
SqlNameMatchers.withCaseSensitive(boolean caseSensitive)
Returns a name matcher with the given case sensitivity.
|
| Modifier and Type | Method and Description |
|---|---|
private int |
OrderByScope.aliasCount(SqlNameMatcher nameMatcher,
String name)
Returns the number of columns in the SELECT clause that have
name
as their implicit (e.g. |
private ScopeChild |
ListScope.findChild(List<String> names,
SqlNameMatcher nameMatcher) |
Map<String,ScopeChild> |
ListScope.findQualifyingTableNames(String columnName,
SqlNode ctx,
SqlNameMatcher nameMatcher) |
Map<String,ScopeChild> |
SqlValidatorScope.findQualifyingTableNames(String columnName,
SqlNode ctx,
SqlNameMatcher nameMatcher)
Finds all table aliases which are implicitly qualifying an unqualified
column name.
|
Map<String,ScopeChild> |
MatchRecognizeScope.findQualifyingTableNames(String columnName,
SqlNode ctx,
SqlNameMatcher nameMatcher) |
Map<String,ScopeChild> |
EmptyScope.findQualifyingTableNames(String columnName,
SqlNode ctx,
SqlNameMatcher nameMatcher) |
Map<String,ScopeChild> |
DelegatingScope.findQualifyingTableNames(String columnName,
SqlNode ctx,
SqlNameMatcher nameMatcher) |
static CalciteSchema |
SqlValidatorUtil.getSchema(CalciteSchema rootSchema,
Iterable<String> schemaPath,
SqlNameMatcher nameMatcher)
Finds and returns
CalciteSchema nested to the given rootSchema
with specified schemaPath. |
private void |
EmptyScope.resolve_(CalciteSchema rootSchema,
List<String> names,
List<String> schemaNames,
SqlNameMatcher nameMatcher,
SqlValidatorScope.Path path,
SqlValidatorScope.Resolved resolved) |
void |
ListScope.resolve(List<String> names,
SqlNameMatcher nameMatcher,
boolean deep,
SqlValidatorScope.Resolved resolved) |
void |
WithScope.resolve(List<String> names,
SqlNameMatcher nameMatcher,
boolean deep,
SqlValidatorScope.Resolved resolved) |
void |
SqlValidatorScope.resolve(List<String> names,
SqlNameMatcher nameMatcher,
boolean deep,
SqlValidatorScope.Resolved resolved)
Looks up a node with a given name.
|
void |
MatchRecognizeScope.resolve(List<String> names,
SqlNameMatcher nameMatcher,
boolean deep,
SqlValidatorScope.Resolved resolved) |
void |
EmptyScope.resolve(List<String> names,
SqlNameMatcher nameMatcher,
boolean deep,
SqlValidatorScope.Resolved resolved) |
void |
DelegatingScope.resolve(List<String> names,
SqlNameMatcher nameMatcher,
boolean deep,
SqlValidatorScope.Resolved resolved) |
(package private) void |
DelegatingScope.resolveInNamespace(SqlValidatorNamespace ns,
boolean nullable,
List<String> names,
SqlNameMatcher nameMatcher,
SqlValidatorScope.Path path,
SqlValidatorScope.Resolved resolved)
If a record type allows implicit references to fields, recursively looks
into the fields.
|
void |
WithScope.resolveTable(List<String> names,
SqlNameMatcher nameMatcher,
SqlValidatorScope.Path path,
SqlValidatorScope.Resolved resolved) |
void |
SqlValidatorScope.resolveTable(List<String> names,
SqlNameMatcher nameMatcher,
SqlValidatorScope.Path path,
SqlValidatorScope.Resolved resolved)
Looks up a table in this scope from its name.
|
void |
EmptyScope.resolveTable(List<String> names,
SqlNameMatcher nameMatcher,
SqlValidatorScope.Path path,
SqlValidatorScope.Resolved resolved) |
void |
DelegatingScope.resolveTable(List<String> names,
SqlNameMatcher nameMatcher,
SqlValidatorScope.Path path,
SqlValidatorScope.Resolved resolved) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.