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 alsoFactory
for more information.Note that this interface supports the
TableFactory
stack for compatibility purposes. This is deprecated, however, and new implementations should implement theFactory
stack instead.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ModuleFactory.Context
Context provided when a module is created.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Module
createModule(ModuleFactory.Context context)
Creates and configures aModule
.String
factoryIdentifier()
Returns a unique identifier among same factory interfaces.Set<org.apache.flink.configuration.ConfigOption<?>>
optionalOptions()
Returns a set ofConfigOption
that an implementation of this factory consumes in addition toFactory.requiredOptions()
.Set<org.apache.flink.configuration.ConfigOption<?>>
requiredOptions()
Returns a set ofConfigOption
that 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:Factory
Returns 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:
factoryIdentifier
in interfaceFactory
-
requiredOptions
Set<org.apache.flink.configuration.ConfigOption<?>> requiredOptions()
Description copied from interface:Factory
Returns a set ofConfigOption
that an implementation of this factory requires in addition toFactory.optionalOptions()
.See the documentation of
Factory
for more information.- Specified by:
requiredOptions
in interfaceFactory
-
optionalOptions
Set<org.apache.flink.configuration.ConfigOption<?>> optionalOptions()
Description copied from interface:Factory
Returns a set ofConfigOption
that an implementation of this factory consumes in addition toFactory.requiredOptions()
.See the documentation of
Factory
for more information.- Specified by:
optionalOptions
in interfaceFactory
-
-