Class MockSqlOperatorTable

  • All Implemented Interfaces:
    org.apache.calcite.sql.SqlOperatorTable

    public class MockSqlOperatorTable
    extends org.apache.calcite.sql.util.ChainedSqlOperatorTable
    Mock operator table for testing purposes. Contains the standard SQL operator table, plus a list of operators.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.calcite.sql.util.ListSqlOperatorTable listOpTab  
      • Fields inherited from class org.apache.calcite.sql.util.ChainedSqlOperatorTable

        tableList
    • Constructor Summary

      Constructors 
      Constructor Description
      MockSqlOperatorTable​(org.apache.calcite.sql.SqlOperatorTable parentTable)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addOperator​(org.apache.calcite.sql.SqlOperator op)
      Adds an operator to this table.
      static void addRamp​(MockSqlOperatorTable opTab)  
      • Methods inherited from class org.apache.calcite.sql.util.ChainedSqlOperatorTable

        add, getOperatorList, lookupOperatorOverloads, of
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • listOpTab

        private final org.apache.calcite.sql.util.ListSqlOperatorTable listOpTab
    • Constructor Detail

      • MockSqlOperatorTable

        public MockSqlOperatorTable​(org.apache.calcite.sql.SqlOperatorTable parentTable)
    • Method Detail

      • addOperator

        public void addOperator​(org.apache.calcite.sql.SqlOperator op)
        Adds an operator to this table.