Package org.apache.flink.table.factories
Class FactoryUtil.TableFactoryHelper
java.lang.Object
org.apache.flink.table.factories.FactoryUtil.FactoryHelper<DynamicTableFactory>
org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper
- Enclosing class:
- FactoryUtil
@PublicEvolving
public static class FactoryUtil.TableFactoryHelper
extends FactoryUtil.FactoryHelper<DynamicTableFactory>
Helper utility for discovering formats and validating all options for a
DynamicTableFactory.-
Field Summary
Fields inherited from class org.apache.flink.table.factories.FactoryUtil.FactoryHelper
allOptions, consumedOptionKeys, deprecatedOptionKeys, factory -
Method Summary
Modifier and TypeMethodDescription<I,F extends DecodingFormatFactory<I>>
DecodingFormat<I>discoverDecodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption) Discovers aDecodingFormatof the given type using the given option as factory identifier.<I,F extends EncodingFormatFactory<I>>
EncodingFormat<I>discoverEncodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption) Discovers aEncodingFormatof the given type using the given option as factory identifier.<I,F extends DecodingFormatFactory<I>>
Optional<DecodingFormat<I>>discoverOptionalDecodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption) Discovers aDecodingFormatof the given type using the given option (if present) as factory identifier.<I,F extends EncodingFormatFactory<I>>
Optional<EncodingFormat<I>>discoverOptionalEncodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption) Discovers aEncodingFormatof the given type using the given option (if present) as factory identifier.org.apache.flink.configuration.ReadableConfigReturns all options currently being consumed by the factory.Methods inherited from class org.apache.flink.table.factories.FactoryUtil.FactoryHelper
validate, validateExcept
-
Method Details
-
getOptions
public org.apache.flink.configuration.ReadableConfig getOptions()Returns all options currently being consumed by the factory. This method returns the options already merged withDynamicTableFactory.Context.getEnrichmentOptions(), usingDynamicTableFactory.forwardOptions()as reference of mergeable options.- Overrides:
getOptionsin classFactoryUtil.FactoryHelper<DynamicTableFactory>
-
discoverDecodingFormat
public <I,F extends DecodingFormatFactory<I>> DecodingFormat<I> discoverDecodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption) Discovers aDecodingFormatof the given type using the given option as factory identifier. -
discoverOptionalDecodingFormat
public <I,F extends DecodingFormatFactory<I>> Optional<DecodingFormat<I>> discoverOptionalDecodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption) Discovers aDecodingFormatof the given type using the given option (if present) as factory identifier. -
discoverEncodingFormat
public <I,F extends EncodingFormatFactory<I>> EncodingFormat<I> discoverEncodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption) Discovers aEncodingFormatof the given type using the given option as factory identifier. -
discoverOptionalEncodingFormat
public <I,F extends EncodingFormatFactory<I>> Optional<EncodingFormat<I>> discoverOptionalEncodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption) Discovers aEncodingFormatof the given type using the given option (if present) as factory identifier.
-