Package org.apache.calcite.test.catalog
Class MockCatalogReaderExtended
java.lang.Object
org.apache.calcite.prepare.CalciteCatalogReader
org.apache.calcite.test.catalog.MockCatalogReader
org.apache.calcite.test.catalog.MockCatalogReaderSimple
org.apache.calcite.test.catalog.MockCatalogReaderExtended
- All Implemented Interfaces:
RelOptSchema
,Prepare.CatalogReader
,Wrapper
,SqlOperatorTable
,SqlValidatorCatalogReader
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.test.catalog.MockCatalogReader
MockCatalogReader.ColumnResolver, MockCatalogReader.MockDynamicTable, MockCatalogReader.MockModifiableViewRelOptTable, MockCatalogReader.MockRelViewTable, MockCatalogReader.MockSchema, MockCatalogReader.MockTable, MockCatalogReader.MockViewTable, MockCatalogReader.MustFilterMockTable
-
Field Summary
Fields inherited from class org.apache.calcite.prepare.CalciteCatalogReader
config, nameMatcher, rootSchema, typeFactory
Fields inherited from interface org.apache.calcite.prepare.Prepare.CatalogReader
THREAD_LOCAL
-
Constructor Summary
ModifierConstructorDescriptionprotected
MockCatalogReaderExtended
(RelDataTypeFactory typeFactory, boolean caseSensitive) Creates a MockCatalogReader. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull MockCatalogReaderExtended
create
(RelDataTypeFactory typeFactory, boolean caseSensitive) Creates and initializes a MockCatalogReaderExtended.init()
Initializes this catalog reader.Methods inherited from class org.apache.calcite.test.catalog.MockCatalogReaderSimple
getNamedType
Methods inherited from class org.apache.calcite.test.catalog.MockCatalogReader
isCaseSensitive, nameMatcher, registerSchema, registerTable, registerTablesWithRollUp, registerType
Methods inherited from class org.apache.calcite.prepare.CalciteCatalogReader
createTypeFromProjection, field, getAllSchemaObjectNames, getConfig, getOperatorList, getRootSchema, getSchemaPaths, getTable, getTableForMember, getTypeFactory, lookupOperatorOverloads, matches, operatorTable, registerRules, unwrap, withSchemaPath
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.schema.Wrapper
maybeUnwrap, unwrapOrThrow
-
Constructor Details
-
MockCatalogReaderExtended
Creates a MockCatalogReader.Caller must then call
init()
to populate with data; constructor is protected to encourage you to callcreate(org.apache.calcite.rel.type.RelDataTypeFactory, boolean)
.- Parameters:
typeFactory
- Type factorycaseSensitive
- case sensitivity
-
-
Method Details
-
create
public static @NonNull MockCatalogReaderExtended create(RelDataTypeFactory typeFactory, boolean caseSensitive) Creates and initializes a MockCatalogReaderExtended. -
init
Description copied from class:MockCatalogReader
Initializes this catalog reader.- Overrides:
init
in classMockCatalogReaderSimple
-