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 | Interface and Description |
---|---|
static interface |
Prepare.CatalogReader
Interface by which validator and planner can read table metadata.
|
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 SqlOperatorTable |
CalciteCatalogReader.operatorTable(String className)
Creates an operator table that contains functions in the given class.
|
Modifier and Type | Method and Description |
---|---|
static SqlOperator |
SqlUtil.lookupRoutine(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
List<String> argNames,
SqlFunctionCategory category,
SqlSyntax syntax,
SqlKind sqlKind)
Looks up a (possibly overloaded) routine based on name and argument
types.
|
static Iterator<SqlOperator> |
SqlUtil.lookupSubjectRoutines(SqlOperatorTable opTab,
SqlIdentifier funcName,
List<RelDataType> argTypes,
List<String> argNames,
SqlSyntax sqlSyntax,
SqlKind sqlKind,
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)
Determines whether 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 |
OracleSqlOperatorTable
Operator table that contains only Oracle-specific functions and operators.
|
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 |
---|---|
static SqlOperatorTable |
ChainedSqlOperatorTable.of(SqlOperatorTable... tables)
Creates a
ChainedSqlOperatorTable . |
Modifier and Type | Method and Description |
---|---|
void |
ChainedSqlOperatorTable.add(SqlOperatorTable table)
Adds an underlying table.
|
static SqlOperatorTable |
ChainedSqlOperatorTable.of(SqlOperatorTable... tables)
Creates a
ChainedSqlOperatorTable . |
Constructor and Description |
---|
ChainedSqlOperatorTable(List<SqlOperatorTable> tableList)
Creates a table based on a given list.
|
Modifier and Type | Method and Description |
---|---|
SqlOperatorTable |
SqlValidator.getOperatorTable()
Returns the operator table used by this validator.
|
SqlOperatorTable |
SqlValidatorImpl.getOperatorTable() |
Modifier and Type | Method and Description |
---|---|
static SqlValidatorWithHints |
SqlValidatorUtil.newValidator(SqlOperatorTable opTab,
SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory)
Deprecated.
|
static SqlValidatorWithHints |
SqlValidatorUtil.newValidator(SqlOperatorTable opTab,
SqlValidatorCatalogReader catalogReader,
RelDataTypeFactory typeFactory,
SqlConformance conformance)
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–2018 The Apache Software Foundation. All rights reserved.