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, ReadableConfig configuration, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getClassLoader()
Returns the class loader of the current session.ReadableConfig
getConfiguration()
Gives read-only access to the configuration of the current session.String
getName()
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, ReadableConfig configuration, ClassLoader classLoader)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:CatalogFactory.Context
Returns the name with which the catalog is created.- Specified by:
getName
in interfaceCatalogFactory.Context
-
getOptions
public Map<String,String> getOptions()
Description copied from interface:CatalogFactory.Context
Returns the options with which the catalog is created.An implementation should perform validation of these options.
- Specified by:
getOptions
in interfaceCatalogFactory.Context
-
getConfiguration
public ReadableConfig getConfiguration()
Description copied from interface:CatalogFactory.Context
Gives read-only access to the configuration of the current session.- Specified by:
getConfiguration
in interfaceCatalogFactory.Context
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:CatalogFactory.Context
Returns the class loader of the current session.The class loader is in particular useful for discovering further (nested) factories.
- Specified by:
getClassLoader
in interfaceCatalogFactory.Context
-
-