Package org.apache.flink.table.factories
Interface ModuleFactory
- All Superinterfaces:
Factory
- All Known Implementing Classes:
CoreModuleFactory
A factory to create configured module instances based on string-based properties. See also
Factory for more information.
Note that this interface supports the TableFactory stack for compatibility purposes.
This is deprecated, however, and new implementations should implement the Factory stack
instead.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContext provided when a module is created. -
Method Summary
Modifier and TypeMethodDescriptiondefault ModulecreateModule(ModuleFactory.Context context) Creates and configures aModule.Returns a unique identifier among same factory interfaces.Set<org.apache.flink.configuration.ConfigOption<?>>Returns a set ofConfigOptionthat an implementation of this factory consumes in addition toFactory.requiredOptions().Set<org.apache.flink.configuration.ConfigOption<?>>Returns a set ofConfigOptionthat an implementation of this factory requires in addition toFactory.optionalOptions().
-
Method Details
-
createModule
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
-