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
,SqlGatewayEndpointFactoryUtils.EndpointFactoryHelper
,WorkflowSchedulerFactoryUtil.WorkflowSchedulerFactoryHelper
- Enclosing class:
- FactoryUtil
@PublicEvolving public static class FactoryUtil.FactoryHelper<F extends Factory> extends Object
Base helper utility for validating all options for aFactory
.
-
-
Field Summary
Fields Modifier and Type Field Description protected Configuration
allOptions
protected Set<String>
consumedOptionKeys
protected Set<String>
deprecatedOptionKeys
protected F
factory
-
Constructor Summary
Constructors Constructor Description FactoryHelper(F factory, Map<String,String> configuration, ConfigOption<?>... implicitOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadableConfig
getOptions()
Returns all options currently being consumed by the factory.void
validate()
Validates the options of the factory.void
validateExcept(String... prefixesToSkip)
Validates the options of the factory.
-
-
-
Constructor Detail
-
FactoryHelper
public FactoryHelper(F factory, Map<String,String> configuration, ConfigOption<?>... implicitOptions)
-
-
Method Detail
-
validate
public void validate()
Validates the options of the factory. It checks for unconsumed option keys.
-
validateExcept
public void validateExcept(String... prefixesToSkip)
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
prefixToSkip
would just be skipped for validation.- Parameters:
prefixesToSkip
- Set of option key prefixes to skip validation
-
getOptions
public ReadableConfig getOptions()
Returns all options currently being consumed by the factory.
-
-