public static class FactoryUtil.TableFactoryHelper extends Object
DynamicTableFactory.| 限定符和类型 | 方法和说明 |
|---|---|
<I,F extends DecodingFormatFactory<I>> |
discoverDecodingFormat(Class<F> formatFactoryClass,
org.apache.flink.configuration.ConfigOption<String> formatOption)
Discovers a
DecodingFormat of the given type using the given option as factory
identifier. |
<I,F extends EncodingFormatFactory<I>> |
discoverEncodingFormat(Class<F> formatFactoryClass,
org.apache.flink.configuration.ConfigOption<String> formatOption)
Discovers a
EncodingFormat of the given type using the given option as factory
identifier. |
<I,F extends DecodingFormatFactory<I>> |
discoverOptionalDecodingFormat(Class<F> formatFactoryClass,
org.apache.flink.configuration.ConfigOption<String> formatOption)
Discovers a
DecodingFormat of the given type using the given option (if present)
as factory identifier. |
<I,F extends EncodingFormatFactory<I>> |
discoverOptionalEncodingFormat(Class<F> formatFactoryClass,
org.apache.flink.configuration.ConfigOption<String> formatOption)
Discovers a
EncodingFormat of the given type using the given option (if present)
as factory identifier. |
org.apache.flink.configuration.ReadableConfig |
getOptions()
Returns all options of the table.
|
void |
validate()
Validates the options of the
DynamicTableFactory. |
void |
validateExcept(String... prefixesToSkip)
Validates the options of the
DynamicTableFactory. |
public <I,F extends DecodingFormatFactory<I>> DecodingFormat<I> discoverDecodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption)
DecodingFormat of the given type using the given option as factory
identifier.public <I,F extends DecodingFormatFactory<I>> Optional<DecodingFormat<I>> discoverOptionalDecodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption)
DecodingFormat of the given type using the given option (if present)
as factory identifier.public <I,F extends EncodingFormatFactory<I>> EncodingFormat<I> discoverEncodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption)
EncodingFormat of the given type using the given option as factory
identifier.public <I,F extends EncodingFormatFactory<I>> Optional<EncodingFormat<I>> discoverOptionalEncodingFormat(Class<F> formatFactoryClass, org.apache.flink.configuration.ConfigOption<String> formatOption)
EncodingFormat of the given type using the given option (if present)
as factory identifier.public void validate()
DynamicTableFactory. It checks for unconsumed option
keys.public void validateExcept(String... prefixesToSkip)
DynamicTableFactory. 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.
prefixesToSkip - Set of option key prefixes to skip validationpublic org.apache.flink.configuration.ReadableConfig getOptions()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.