Interface SqlOperatorTable

All Known Subinterfaces:
Prepare.CatalogReader
All Known Implementing Classes:
CalciteCatalogReader, ChainedSqlOperatorTable, ListSqlOperatorTable, MockCatalogReader, MockCatalogReaderDynamic, MockCatalogReaderExtended, MockCatalogReaderSimple, MockSqlOperatorTable, MustFilterMockCatalogReader, OracleSqlOperatorTable, ReflectiveSqlOperatorTable, SqlSpatialTypeOperatorTable, SqlStdOperatorTable

public interface SqlOperatorTable
SqlOperatorTable defines a directory interface for enumerating and looking up SQL operators and functions.
  • Method Details

    • lookupOperatorOverloads

      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. For example, by passing SqlSyntax.Function, the returned list is narrowed to only matching SqlFunction objects.
      Parameters:
      opName - name of operator
      category - function category to look up, or null for any matching operator
      syntax - syntax type of operator
      operatorList - mutable list to which to append matches
      nameMatcher - Name matcher
    • getOperatorList

      List<SqlOperator> getOperatorList()
      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.
      Returns:
      list of SqlOperator objects