public static class FactoryUtil.TableFactoryHelper extends Object
DynamicTableFactory
.Modifier and Type | Method and Description |
---|---|
<I,F extends DecodingFormatFactory<I>> |
discoverDecodingFormat(Class<F> formatFactoryClass,
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,
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,
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,
ConfigOption<String> formatOption)
Discovers a
EncodingFormat of the given type using the given option (if present)
as factory identifier. |
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, 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, 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, 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, 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 ReadableConfig getOptions()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.