@Internal public static class FactoryUtil.DefaultCatalogContext extends Object implements CatalogFactory.Context
CatalogFactory.Context.| Constructor and Description |
|---|
DefaultCatalogContext(String name,
Map<String,String> options,
org.apache.flink.configuration.ReadableConfig configuration,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
Returns the class loader of the current session.
|
org.apache.flink.configuration.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.
|
public DefaultCatalogContext(String name, Map<String,String> options, org.apache.flink.configuration.ReadableConfig configuration, ClassLoader classLoader)
public String getName()
CatalogFactory.ContextgetName in interface CatalogFactory.Contextpublic Map<String,String> getOptions()
CatalogFactory.ContextAn implementation should perform validation of these options.
getOptions in interface CatalogFactory.Contextpublic org.apache.flink.configuration.ReadableConfig getConfiguration()
CatalogFactory.ContextgetConfiguration in interface CatalogFactory.Contextpublic ClassLoader getClassLoader()
CatalogFactory.ContextThe class loader is in particular useful for discovering further (nested) factories.
getClassLoader in interface CatalogFactory.ContextCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.