@PublicEvolving public static class FactoryUtil.FactoryHelper<F extends Factory> extends Object
Factory
.Modifier and Type | Field and Description |
---|---|
protected Configuration |
allOptions |
protected Set<String> |
consumedOptionKeys |
protected Set<String> |
deprecatedOptionKeys |
protected F |
factory |
Constructor and Description |
---|
FactoryHelper(F factory,
Map<String,String> configuration,
ConfigOption<?>... implicitOptions) |
Modifier and Type | Method and Description |
---|---|
ReadableConfig |
getOptions()
Returns all options currently being consumed by the factory.
|
void |
validate()
Validates the options of the factory.
|
void |
validateExcept(String... prefixesToSkip)
Validates the options of the factory.
|
protected final Configuration allOptions
public FactoryHelper(F factory, Map<String,String> configuration, ConfigOption<?>... implicitOptions)
public void validate()
public void validateExcept(String... prefixesToSkip)
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–2024 The Apache Software Foundation. All rights reserved.