Package org.apache.flink.table.factories
Class FactoryUtil.DefaultCatalogContext
java.lang.Object
org.apache.flink.table.factories.FactoryUtil.DefaultCatalogContext
- All Implemented Interfaces:
CatalogFactory.Context
- Enclosing class:
- FactoryUtil
@Internal
public static class FactoryUtil.DefaultCatalogContext
extends Object
implements CatalogFactory.Context
Default implementation of
CatalogFactory.Context.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCatalogContext(String name, Map<String, String> options, org.apache.flink.configuration.ReadableConfig configuration, ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptionReturns the class loader of the current session.org.apache.flink.configuration.ReadableConfigGives read-only access to the configuration of the current session.getName()Returns the name with which the catalog is created.Returns the options with which the catalog is created.
-
Constructor Details
-
DefaultCatalogContext
public DefaultCatalogContext(String name, Map<String, String> options, org.apache.flink.configuration.ReadableConfig configuration, ClassLoader classLoader)
-
-
Method Details
-
getName
Description copied from interface:CatalogFactory.ContextReturns the name with which the catalog is created.- Specified by:
getNamein interfaceCatalogFactory.Context
-
getOptions
Description copied from interface:CatalogFactory.ContextReturns the options with which the catalog is created.An implementation should perform validation of these options.
- Specified by:
getOptionsin interfaceCatalogFactory.Context
-
getConfiguration
public org.apache.flink.configuration.ReadableConfig getConfiguration()Description copied from interface:CatalogFactory.ContextGives read-only access to the configuration of the current session.- Specified by:
getConfigurationin interfaceCatalogFactory.Context
-
getClassLoader
Description copied from interface:CatalogFactory.ContextReturns the class loader of the current session.The class loader is in particular useful for discovering further (nested) factories.
- Specified by:
getClassLoaderin interfaceCatalogFactory.Context
-