Class MockCatalogReaderExtended

  • All Implemented Interfaces:
    org.apache.calcite.plan.RelOptSchema, org.apache.calcite.prepare.Prepare.CatalogReader, org.apache.calcite.schema.Wrapper, org.apache.calcite.sql.SqlOperatorTable, org.apache.calcite.sql.validate.SqlValidatorCatalogReader

    public class MockCatalogReaderExtended
    extends MockCatalogReaderSimple
    Adds some extra tables to the mock catalog. These increase the time and complexity of initializing the catalog (because they contain views whose SQL needs to be parsed) and so are not used for all tests.
    • Constructor Detail

      • MockCatalogReaderExtended

        public MockCatalogReaderExtended​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory,
                                         boolean caseSensitive)
        Creates a MockCatalogReader.

        Caller must then call init() to populate with data.

        Parameters:
        typeFactory - Type factory
        caseSensitive - case sensitivity