| 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) |
| Modifier and Type | Method and Description |
|---|---|
private SqlNode |
SqlAdvisor.tryParse(String sql,
List<SqlMoniker> hintList)
Tries to parse a SQL statement.
|
| 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 |
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. |
SqlMoniker |
SqlValidatorImpl.lookupQualifiedName(SqlNode topNode,
SqlParserPos pos) |
| Modifier and Type | Method and Description |
|---|---|
List<SqlMoniker> |
DelegatingSqlValidatorCatalogReader.getAllSchemaObjectNames(List<String> names) |
List<SqlMoniker> |
SqlValidatorCatalogReader.getAllSchemaObjectNames(List<String> names)
Given fully qualified schema name, returns schema object names as
specified.
|
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.
|
List<SqlMoniker> |
SqlValidatorImpl.lookupHints(SqlNode topNode,
SqlParserPos pos) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DelegatingScope.addColumnNames(SqlValidatorNamespace ns,
List<SqlMoniker> colNames) |
void |
ListScope.findAliases(Collection<SqlMoniker> result) |
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 |
EmptyScope.findAliases(Collection<SqlMoniker> result) |
void |
DelegatingScope.findAliases(Collection<SqlMoniker> result) |
void |
ListScope.findAllColumnNames(List<SqlMoniker> result) |
void |
OrderByScope.findAllColumnNames(List<SqlMoniker> result) |
void |
SqlValidatorScope.findAllColumnNames(List<SqlMoniker> result)
Collects the
SqlMonikers of all possible columns in this scope. |
void |
EmptyScope.findAllColumnNames(List<SqlMoniker> result) |
void |
DelegatingScope.findAllColumnNames(List<SqlMoniker> result) |
void |
EmptyScope.findAllTableNames(List<SqlMoniker> result) |
private static void |
SqlValidatorImpl.findAllValidFunctionNames(List<String> names,
SqlValidator validator,
Collection<SqlMoniker> result,
SqlParserPos pos) |
private static void |
SqlValidatorImpl.findAllValidUdfNames(List<String> names,
SqlValidator validator,
Collection<SqlMoniker> result) |
static void |
SqlValidatorUtil.getSchemaObjectMonikers(SqlValidatorCatalogReader catalogReader,
List<String> names,
List<SqlMoniker> hints) |
private void |
SqlValidatorImpl.lookupFromHints(SqlNode node,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
private void |
SqlValidatorImpl.lookupJoinHints(SqlJoin join,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
void |
SqlValidatorImpl.lookupNameCompletionHints(SqlValidatorScope scope,
List<String> names,
SqlParserPos pos,
Collection<SqlMoniker> hintList)
Populates a list of all the valid alternatives for an identifier.
|
(package private) void |
SqlValidatorImpl.lookupSelectHints(SqlSelect select,
SqlParserPos pos,
Collection<SqlMoniker> hintList)
Looks up completion hints for a syntactically correct select SQL that has
been parsed into an expression tree.
|
private void |
SqlValidatorImpl.lookupSelectHints(SqlValidatorNamespace ns,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.