Package org.apache.flink.table.factories
Interface ModuleFactory
-
- All Superinterfaces:
Factory
- All Known Implementing Classes:
CoreModuleFactory
@PublicEvolving public interface ModuleFactory extends Factory
A factory to create configured module instances based on string-based properties. See alsoFactoryfor more information.Note that this interface supports the
TableFactorystack for compatibility purposes. This is deprecated, however, and new implementations should implement theFactorystack instead.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceModuleFactory.ContextContext provided when a module is created.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ModulecreateModule(ModuleFactory.Context context)Creates and configures aModule.StringfactoryIdentifier()Returns a unique identifier among same factory interfaces.Set<org.apache.flink.configuration.ConfigOption<?>>optionalOptions()Returns a set ofConfigOptionthat an implementation of this factory consumes in addition toFactory.requiredOptions().Set<org.apache.flink.configuration.ConfigOption<?>>requiredOptions()Returns a set ofConfigOptionthat an implementation of this factory requires in addition toFactory.optionalOptions().
-
-
-
Method Detail
-
createModule
default Module createModule(ModuleFactory.Context context)
Creates and configures aModule.
-
factoryIdentifier
String factoryIdentifier()
Description copied from interface:FactoryReturns a unique identifier among same factory interfaces.For consistency, an identifier should be declared as one lower case word (e.g.
kafka). If multiple factories exist for different versions, a version should be appended using "-" (e.g.elasticsearch-7).- Specified by:
factoryIdentifierin interfaceFactory
-
requiredOptions
Set<org.apache.flink.configuration.ConfigOption<?>> requiredOptions()
Description copied from interface:FactoryReturns a set ofConfigOptionthat an implementation of this factory requires in addition toFactory.optionalOptions().See the documentation of
Factoryfor more information.- Specified by:
requiredOptionsin interfaceFactory
-
optionalOptions
Set<org.apache.flink.configuration.ConfigOption<?>> optionalOptions()
Description copied from interface:FactoryReturns a set ofConfigOptionthat an implementation of this factory consumes in addition toFactory.requiredOptions().See the documentation of
Factoryfor more information.- Specified by:
optionalOptionsin interfaceFactory
-
-