Package org.apache.calcite.sql.util
Class ChainedSqlOperatorTable
java.lang.Object
org.apache.calcite.sql.util.ChainedSqlOperatorTable
- All Implemented Interfaces:
SqlOperatorTable
- Direct Known Subclasses:
MockSqlOperatorTable
ChainedSqlOperatorTable implements the
SqlOperatorTable
interface by
chaining together any number of underlying operator table instances.
To create, call SqlOperatorTables.chain(java.lang.Iterable<org.apache.calcite.sql.SqlOperatorTable>)
.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ChainedSqlOperatorTable
(com.google.common.collect.ImmutableList<SqlOperatorTable> tableList) Internal constructor; callSqlOperatorTables.chain(java.lang.Iterable<org.apache.calcite.sql.SqlOperatorTable>)
.ChainedSqlOperatorTable
(List<SqlOperatorTable> tableList) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SqlOperatorTable table) Deprecated.Retrieves a list of all functions and operators in this table.void
lookupOperatorOverloads
(SqlIdentifier opName, @Nullable SqlFunctionCategory category, SqlSyntax syntax, List<SqlOperator> operatorList, SqlNameMatcher nameMatcher) Retrieves a list of operators with a given name and syntax.
-
Field Details
-
tableList
-
-
Constructor Details
-
ChainedSqlOperatorTable
Deprecated. -
ChainedSqlOperatorTable
protected ChainedSqlOperatorTable(com.google.common.collect.ImmutableList<SqlOperatorTable> tableList) Internal constructor; callSqlOperatorTables.chain(java.lang.Iterable<org.apache.calcite.sql.SqlOperatorTable>)
.
-
-
Method Details
-
add
Deprecated. -
lookupOperatorOverloads
public void lookupOperatorOverloads(SqlIdentifier opName, @Nullable SqlFunctionCategory category, SqlSyntax syntax, List<SqlOperator> operatorList, SqlNameMatcher nameMatcher) Description copied from interface:SqlOperatorTable
Retrieves a list of operators with a given name and syntax. For example, by passing SqlSyntax.Function, the returned list is narrowed to only matching SqlFunction objects.- Specified by:
lookupOperatorOverloads
in interfaceSqlOperatorTable
- Parameters:
opName
- name of operatorcategory
- function category to look up, or null for any matching operatorsyntax
- syntax type of operatoroperatorList
- mutable list to which to append matchesnameMatcher
- Name matcher
-
getOperatorList
Description copied from interface:SqlOperatorTable
Retrieves a list of all functions and operators in this table. Used for automated testing. Depending on the table type, may or may not be mutable.- Specified by:
getOperatorList
in interfaceSqlOperatorTable
- Returns:
- list of SqlOperator objects
-