Package org.apache.flink.table.factories
Class FactoryUtil.FactoryHelper<F extends Factory>
java.lang.Object
org.apache.flink.table.factories.FactoryUtil.FactoryHelper<F>
- Direct Known Subclasses:
FactoryUtil.CatalogFactoryHelper,FactoryUtil.CatalogStoreFactoryHelper,FactoryUtil.ModuleFactoryHelper,FactoryUtil.TableFactoryHelper,WorkflowSchedulerFactoryUtil.WorkflowSchedulerFactoryHelper
- Enclosing class:
- FactoryUtil
Base helper utility for validating all options for a
Factory.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.flink.configuration.Configurationprotected final F -
Constructor Summary
ConstructorsConstructorDescriptionFactoryHelper(F factory, Map<String, String> configuration, org.apache.flink.configuration.ConfigOption<?>... implicitOptions) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.configuration.ReadableConfigReturns all options currently being consumed by the factory.voidvalidate()Validates the options of the factory.voidvalidateExcept(String... prefixesToSkip) Validates the options of the factory.
-
Field Details
-
factory
-
allOptions
protected final org.apache.flink.configuration.Configuration allOptions -
consumedOptionKeys
-
deprecatedOptionKeys
-
-
Constructor Details
-
FactoryHelper
-
-
Method Details
-
validate
public void validate()Validates the options of the factory. It checks for unconsumed option keys. -
validateExcept
Validates the options of the factory. It checks for unconsumed option keys while ignoring the options with given prefixes.The option keys that have given prefix
prefixToSkipwould just be skipped for validation.- Parameters:
prefixesToSkip- Set of option key prefixes to skip validation
-
getOptions
public org.apache.flink.configuration.ReadableConfig getOptions()Returns all options currently being consumed by the factory.
-