| 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.fun |
Defines the set of standard SQL row-level functions and
operators.
|
| org.apache.calcite.sql.util |
Utility classes for the SQL object model, parsing, and validation.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| org.apache.calcite.tools |
Provides utility classes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CalciteCatalogReader
Implementation of
Prepare.CatalogReader
and also SqlOperatorTable based on tables and
functions defined schemas. |
| Modifier and Type | Method and Description |
|---|---|
static SqlFunction |
SqlUtil.lookupRoutine(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
SqlFunctionCategory category)
Looks up a (possibly overloaded) routine based on name and argument
types.
|
static List<SqlFunction> |
SqlUtil.lookupSubjectRoutines(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
SqlFunctionCategory category)
Looks up all subject routines matching the given name and argument types.
|
static SqlCall |
SqlUtil.makeCall(SqlOperatorTable opTab,
SqlIdentifier id)
If an identifier is a legitimate call to a function which has no
arguments and requires no parentheses (for example "CURRENT_USER"),
returns a call to that function, otherwise returns null.
|
static boolean |
SqlUtil.matchRoutinesByParameterCount(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
SqlFunctionCategory category)
Determine if there is a routine matching the given name and number of
arguments.
|
| Constructor and Description |
|---|
SqlAdvisorValidator(SqlOperatorTable opTab,
SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory,
SqlConformance conformance)
Creates a SqlAdvisor validator.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SqlStdOperatorTable
Implementation of
SqlOperatorTable containing
the standard operators and functions. |
| Modifier and Type | Class and Description |
|---|---|
class |
ChainedSqlOperatorTable
ChainedSqlOperatorTable implements the
SqlOperatorTable interface by
chaining together any number of underlying operator table instances. |
class |
ListSqlOperatorTable
Implementation of the
SqlOperatorTable interface by using a list of
operators. |
class |
ReflectiveSqlOperatorTable
ReflectiveSqlOperatorTable implements the
SqlOperatorTable interface
by reflecting the public fields of a subclass. |
| Modifier and Type | Field and Description |
|---|---|
protected List<SqlOperatorTable> |
ChainedSqlOperatorTable.tableList |
| Modifier and Type | Method and Description |
|---|---|
void |
ChainedSqlOperatorTable.add(SqlOperatorTable table)
Adds an underlying table.
|
| Constructor and Description |
|---|
ChainedSqlOperatorTable(List<SqlOperatorTable> tableList)
Creates a table based on a given list.
|
| Modifier and Type | Method and Description |
|---|---|
SqlOperatorTable |
SqlValidatorImpl.getOperatorTable() |
SqlOperatorTable |
SqlValidator.getOperatorTable()
Returns the operator table used by this validator.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlValidatorWithHints |
SqlValidatorUtil.newValidator(SqlOperatorTable opTab,
SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory)
Factory method for
SqlValidator. |
| Constructor and Description |
|---|
SqlValidatorImpl(SqlOperatorTable opTab,
SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory,
SqlConformance conformance)
Creates a validator.
|
| Modifier and Type | Method and Description |
|---|---|
SqlOperatorTable |
FrameworkConfig.getOperatorTable()
Returns operator table that should be used to
resolve functions and operators during query validation.
|
| Modifier and Type | Method and Description |
|---|---|
Frameworks.ConfigBuilder |
Frameworks.ConfigBuilder.operatorTable(SqlOperatorTable operatorTable) |
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.