| Package | Description |
|---|---|
| org.apache.calcite.prepare |
Preparation of queries (parsing, planning and implementation).
|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| 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 |
|---|---|
List<SqlMoniker> |
CalciteCatalogReader.getAllSchemaObjectNames(List<String> names) |
| Modifier and Type | Method and Description |
|---|---|
void |
SqlCall.findValidOptions(SqlValidator validator,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
void |
SqlNode.findValidOptions(SqlValidator validator,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList)
Lists all the valid alternatives for this node if the parse position of
the node matches that of pos.
|
| Modifier and Type | Method and Description |
|---|---|
SqlMoniker |
SqlAdvisor.getQualifiedName(String sql,
int cursor)
Gets the fully qualified name for a
SqlIdentifier at a given
position of a sql statement. |
| Modifier and Type | Method and Description |
|---|---|
List<SqlMoniker> |
SqlAdvisor.getCompletionHints(String sql,
int cursor,
String[] replaced)
Gets completion hints for a partially completed or syntactically incorrect
sql statement with cursor pointing to the position where completion hints
are requested.
|
List<SqlMoniker> |
SqlAdvisor.getCompletionHints(String sql,
SqlParserPos pos)
Gets completion hints for a syntactically correct sql statement with dummy
SqlIdentifier
|
List<SqlMoniker> |
SqlAdvisor.getCompletionHints0(String sql,
int cursor) |
| Constructor and Description |
|---|
SqlAdvisorHint(SqlMoniker id) |
| Modifier and Type | Class and Description |
|---|---|
class |
SqlIdentifierMoniker
An implementation of
SqlMoniker that encapsulates the normalized name
information of a SqlIdentifier. |
class |
SqlMonikerImpl
A generic implementation of
SqlMoniker. |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<SqlMoniker> |
SqlMoniker.COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
SqlMoniker |
SqlValidatorImpl.lookupQualifiedName(SqlNode topNode,
SqlParserPos pos) |
SqlMoniker |
SqlValidatorWithHints.lookupQualifiedName(SqlNode topNode,
SqlParserPos pos)
Looks up the fully qualified name for a
SqlIdentifier at a given
Parser Position in a parsed expression tree Note: call this only after
SqlValidator.validate(org.apache.calcite.sql.SqlNode) has been called. |
| Modifier and Type | Method and Description |
|---|---|
List<SqlMoniker> |
SqlValidatorCatalogReader.getAllSchemaObjectNames(List<String> names)
Given fully qualified schema name, returns schema object names as
specified.
|
List<SqlMoniker> |
DelegatingSqlValidatorCatalogReader.getAllSchemaObjectNames(List<String> names) |
List<SqlMoniker> |
SqlValidatorImpl.lookupHints(SqlNode topNode,
SqlParserPos pos) |
List<SqlMoniker> |
SqlValidatorWithHints.lookupHints(SqlNode topNode,
SqlParserPos pos)
Looks up completion hints for a syntactically correct SQL statement that
has been parsed into an expression tree.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DelegatingScope.addColumnNames(SqlValidatorNamespace ns,
List<SqlMoniker> colNames) |
void |
SqlValidatorScope.findAliases(Collection<SqlMoniker> result)
Collects the
SqlMonikers of all table aliases (uses of tables in
query FROM clauses) available in this scope. |
void |
DelegatingScope.findAliases(Collection<SqlMoniker> result) |
void |
ListScope.findAliases(Collection<SqlMoniker> result) |
void |
SqlValidatorScope.findAllColumnNames(List<SqlMoniker> result)
Collects the
SqlMonikers of all possible columns in this scope. |
void |
DelegatingScope.findAllColumnNames(List<SqlMoniker> result) |
void |
OrderByScope.findAllColumnNames(List<SqlMoniker> result) |
void |
ListScope.findAllColumnNames(List<SqlMoniker> result) |
static void |
SqlValidatorUtil.getSchemaObjectMonikers(SqlValidatorCatalogReader catalogReader,
List<String> names,
List<SqlMoniker> hints) |
void |
SqlValidatorImpl.lookupNameCompletionHints(SqlValidatorScope scope,
List<String> names,
SqlParserPos pos,
Collection<SqlMoniker> hintList)
Populates a list of all the valid alternatives for an identifier.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.