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 ofCatalogFactory.Context.
-
-
Constructor Summary
Constructors Constructor Description DefaultCatalogContext(String name, Map<String,String> options, org.apache.flink.configuration.ReadableConfig configuration, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoadergetClassLoader()Returns the class loader of the current session.org.apache.flink.configuration.ReadableConfiggetConfiguration()Gives read-only access to the configuration of the current session.StringgetName()Returns the name with which the catalog is created.Map<String,String>getOptions()Returns the options with which the catalog is created.
-
-
-
Constructor Detail
-
DefaultCatalogContext
public DefaultCatalogContext(String name, Map<String,String> options, org.apache.flink.configuration.ReadableConfig configuration, ClassLoader classLoader)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:CatalogFactory.ContextReturns the name with which the catalog is created.- Specified by:
getNamein interfaceCatalogFactory.Context
-
getOptions
public Map<String,String> 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
public ClassLoader 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
-
-