Package org.apache.calcite.test.catalog
Class MockCatalogReaderDynamic
java.lang.Object
org.apache.calcite.prepare.CalciteCatalogReader
org.apache.calcite.test.catalog.MockCatalogReader
org.apache.calcite.test.catalog.MockCatalogReaderDynamic
- All Implemented Interfaces:
RelOptSchema
,Prepare.CatalogReader
,Wrapper
,SqlOperatorTable
,SqlValidatorCatalogReader
Registers dynamic tables.
Not thread-safe.
-
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
MockCatalogReaderDynamic
(RelDataTypeFactory typeFactory, boolean caseSensitive) Creates a MockCatalogReader. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull MockCatalogReaderDynamic
create
(RelDataTypeFactory typeFactory, boolean caseSensitive) Creates and initializes a MockCatalogReaderDynamic.init()
Initializes this catalog reader.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, getNamedType, 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
-
MockCatalogReaderDynamic
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 MockCatalogReaderDynamic create(RelDataTypeFactory typeFactory, boolean caseSensitive) Creates and initializes a MockCatalogReaderDynamic. -
init
Description copied from class:MockCatalogReader
Initializes this catalog reader.- Specified by:
init
in classMockCatalogReader
-