Class FactoryUtil.FactoryHelper<F extends org.apache.flink.table.factories.Factory>

java.lang.Object
org.apache.flink.table.factories.FactoryUtil.FactoryHelper<F>
Direct Known Subclasses:
FactoryUtil.CatalogFactoryHelper, FactoryUtil.CatalogStoreFactoryHelper, FactoryUtil.ModelProviderFactoryHelper, FactoryUtil.ModuleFactoryHelper, FactoryUtil.TableFactoryHelper
Enclosing class:
FactoryUtil

@PublicEvolving public static class FactoryUtil.FactoryHelper<F extends org.apache.flink.table.factories.Factory> extends Object
Base helper utility for validating all options for a Factory.
  • Field Details

    • factory

      protected final F extends org.apache.flink.table.factories.Factory factory
    • allOptions

      protected final Configuration allOptions
    • consumedOptionKeys

      protected final Set<String> consumedOptionKeys
    • deprecatedOptionKeys

      protected final Set<String> deprecatedOptionKeys
  • Constructor Details

  • Method Details

    • 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.