org.eigenbase.sql
Interface SqlOperatorTable

All Known Implementing Classes:
ChainedSqlOperatorTable, FarragoRngOperatorTable, FarragoUserDefinedRoutineLookup, ListSqlOperatorTable, LucidDbOperatorTable, MockSqlOperatorTable, ReflectiveSqlOperatorTable, SqlStdOperatorTable

public interface SqlOperatorTable

SqlOperatorTable defines a directory interface for enumerating and looking up SQL operators and functions.


Method Summary
 List<SqlOperator> getOperatorList()
          Retrieves a list of all functions and operators in this table.
 List<SqlOperator> lookupOperatorOverloads(SqlIdentifier opName, SqlFunctionCategory category, SqlSyntax syntax)
          Retrieves a list of operators with a given name and syntax.
 

Method Detail

lookupOperatorOverloads

List<SqlOperator> lookupOperatorOverloads(SqlIdentifier opName,
                                          SqlFunctionCategory category,
                                          SqlSyntax syntax)
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
Returns:
mutable list of SqlOperator objects (or immutable empty list if no matches)

getOperatorList

List<SqlOperator> getOperatorList()
Retrieves a list of all functions and operators in this table. Used for automated testing.

Returns:
list of SqlOperator objects