Class ReflectiveSqlOperatorTable

    • Constructor Detail

      • ReflectiveSqlOperatorTable

        protected ReflectiveSqlOperatorTable()
    • Method Detail

      • init

        public final void init()
        Performs post-constructor initialization of an operator table. It can't be part of the constructor, because the subclass constructor needs to complete first.
      • 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
        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
      • lookUpOperators

        private java.util.Collection<SqlOperator> lookUpOperators​(java.lang.String name,
                                                                  SqlSyntax syntax,
                                                                  SqlNameMatcher nameMatcher)
        Look up operators based on case-sensitiveness.
      • register

        public void register​(SqlOperator op)
        Registers a function or operator in the table.
      • 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
        Returns:
        list of SqlOperator objects