Package org.apache.flink.table.factories
Class FactoryUtil.TableFactoryHelper
java.lang.Object
org.apache.flink.table.factories.FactoryUtil.FactoryHelper<org.apache.flink.table.factories.DynamicTableFactory>
org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper
- Enclosing class:
- FactoryUtil
@PublicEvolving
public static class FactoryUtil.TableFactoryHelper
extends FactoryUtil.FactoryHelper<org.apache.flink.table.factories.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 org.apache.flink.table.factories.DecodingFormatFactory<I>>
org.apache.flink.table.connector.format.DecodingFormat<I>discoverDecodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption) Discovers aDecodingFormatof the given type using the given option as factory identifier.<I,F extends org.apache.flink.table.factories.EncodingFormatFactory<I>>
org.apache.flink.table.connector.format.EncodingFormat<I>discoverEncodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption) Discovers aEncodingFormatof the given type using the given option as factory identifier.<I,F extends org.apache.flink.table.factories.DecodingFormatFactory<I>>
Optional<org.apache.flink.table.connector.format.DecodingFormat<I>>discoverOptionalDecodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption) Discovers aDecodingFormatof the given type using the given option (if present) as factory identifier.<I,F extends org.apache.flink.table.factories.EncodingFormatFactory<I>>
Optional<org.apache.flink.table.connector.format.EncodingFormat<I>>discoverOptionalEncodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption) Discovers aEncodingFormatof the given type using the given option (if present) as factory identifier.Returns all options currently being consumed by the factory.Methods inherited from class org.apache.flink.table.factories.FactoryUtil.FactoryHelper
validate, validateExcept
-
Method Details
-
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<org.apache.flink.table.factories.DynamicTableFactory>
-
discoverDecodingFormat
public <I,F extends org.apache.flink.table.factories.DecodingFormatFactory<I>> org.apache.flink.table.connector.format.DecodingFormat<I> discoverDecodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption) Discovers aDecodingFormatof the given type using the given option as factory identifier. -
discoverOptionalDecodingFormat
public <I,F extends org.apache.flink.table.factories.DecodingFormatFactory<I>> Optional<org.apache.flink.table.connector.format.DecodingFormat<I>> discoverOptionalDecodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption) Discovers aDecodingFormatof the given type using the given option (if present) as factory identifier. -
discoverEncodingFormat
public <I,F extends org.apache.flink.table.factories.EncodingFormatFactory<I>> org.apache.flink.table.connector.format.EncodingFormat<I> discoverEncodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption) Discovers aEncodingFormatof the given type using the given option as factory identifier. -
discoverOptionalEncodingFormat
public <I,F extends org.apache.flink.table.factories.EncodingFormatFactory<I>> Optional<org.apache.flink.table.connector.format.EncodingFormat<I>> discoverOptionalEncodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption) Discovers aEncodingFormatof the given type using the given option (if present) as factory identifier.
-