Class ChainedSqlOperatorTable

  • All Implemented Interfaces:

    public class ChainedSqlOperatorTable
    extends java.lang.Object
    implements SqlOperatorTable
    ChainedSqlOperatorTable implements the SqlOperatorTable interface by chaining together any number of underlying operator table instances.
    • Constructor Detail

      • ChainedSqlOperatorTable

        public ChainedSqlOperatorTable​(java.util.List<SqlOperatorTable> tableList)
        Creates a table based on a given list.
    • Method Detail

      • add

        public void add​(SqlOperatorTable table)
        Adds an underlying table. The order in which tables are added is significant; tables added earlier have higher lookup precedence. A table is not added if it is already on the list.
        table - table to add
      • lookupOperatorOverloads

        public void lookupOperatorOverloads​(SqlIdentifier opName,
                                            SqlFunctionCategory category,
                                            SqlSyntax syntax,
                                            java.util.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 interface SqlOperatorTable
        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

        public java.util.List<SqlOperator> getOperatorList()
        Description copied from interface: SqlOperatorTable
        Retrieves a list of all functions and operators in this table. Used for automated testing.
        Specified by:
        getOperatorList in interface SqlOperatorTable
        list of SqlOperator objects