Class FactoryHelper

    • Method Detail

      • validateFactoryOptions

        public static void validateFactoryOptions​(Factory factory,
                                                  Configuration configuration)
        Validates the required and optional ConfigOptions of a factory.

        Note: It does not check for left-over options.

      • validateFactoryOptions

        public static void validateFactoryOptions​(Set<ConfigOption<?>> requiredOptions,
                                                  Set<ConfigOption<?>> optionalOptions,
                                                  Configuration configuration)
        Validates the required options and optional options.

        Note: It does not check for left-over options.

      • validateUnconsumedKeys

        public static void validateUnconsumedKeys​(String factoryIdentifier,
                                                  Set<String> allOptionKeys,
                                                  Set<String> consumedOptionKeys)
        Validates unconsumed option keys.
      • 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
      • getFormatConfig

        public org.apache.flink.configuration.ReadableConfig getFormatConfig​(String formatPrefix)