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 aDynamicTableFactory
.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.table.factories.FactoryUtil.FactoryHelper
allOptions, consumedOptionKeys, deprecatedOptionKeys, factory
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <I,F extends DecodingFormatFactory<I>>
DecodingFormat<I>discoverDecodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption)
Discovers aDecodingFormat
of the given type using the given option as factory identifier.<I,F extends EncodingFormatFactory<I>>
EncodingFormat<I>discoverEncodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption)
Discovers aEncodingFormat
of the given type using the given option as factory identifier.<I,F extends DecodingFormatFactory<I>>
Optional<DecodingFormat<I>>discoverOptionalDecodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption)
Discovers aDecodingFormat
of the given type using the given option (if present) as factory identifier.<I,F extends EncodingFormatFactory<I>>
Optional<EncodingFormat<I>>discoverOptionalEncodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption)
Discovers aEncodingFormat
of the given type using the given option (if present) as factory identifier.ReadableConfig
getOptions()
Returns all options currently being consumed by the factory.-
Methods inherited from class org.apache.flink.table.factories.FactoryUtil.FactoryHelper
validate, validateExcept
-
-
-
-
Method Detail
-
getOptions
public 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:
getOptions
in classFactoryUtil.FactoryHelper<DynamicTableFactory>
-
discoverDecodingFormat
public <I,F extends DecodingFormatFactory<I>> DecodingFormat<I> discoverDecodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption)
Discovers aDecodingFormat
of the given type using the given option as factory identifier.
-
discoverOptionalDecodingFormat
public <I,F extends DecodingFormatFactory<I>> Optional<DecodingFormat<I>> discoverOptionalDecodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption)
Discovers aDecodingFormat
of 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, ConfigOption<String> formatOption)
Discovers aEncodingFormat
of the given type using the given option as factory identifier.
-
discoverOptionalEncodingFormat
public <I,F extends EncodingFormatFactory<I>> Optional<EncodingFormat<I>> discoverOptionalEncodingFormat(Class<F> formatFactoryClass, ConfigOption<String> formatOption)
Discovers aEncodingFormat
of the given type using the given option (if present) as factory identifier.
-
-