T - The type of the default value.public class ConfigProperty<T> extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigProperty.PropertyBuilder
The PropertyBuilder is used to build the ConfigProperty.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkValues(String value) |
T |
defaultValue() |
ConfigProperty<T> |
deprecatedAfter(String deprecatedVersion) |
String |
doc() |
List<String> |
getAlternatives() |
Option<String> |
getDeprecatedVersion() |
Option<String> |
getSinceVersion() |
boolean |
hasDefaultValue() |
String |
key() |
static ConfigProperty.PropertyBuilder |
key(String key)
Create a OptionBuilder with key.
|
ConfigProperty<T> |
sinceVersion(String sinceVersion) |
String |
toString() |
ConfigProperty<T> |
withAlternatives(String... alternatives) |
ConfigProperty<T> |
withDocumentation(String doc) |
ConfigProperty<T> |
withInferFunction(Function<HoodieConfig,Option<T>> inferFunction) |
ConfigProperty<T> |
withValidValues(String... validValues) |
public String key()
public T defaultValue()
public boolean hasDefaultValue()
public String doc()
public void checkValues(String value)
public ConfigProperty<T> withDocumentation(String doc)
public ConfigProperty<T> withValidValues(String... validValues)
public ConfigProperty<T> withAlternatives(String... alternatives)
public ConfigProperty<T> sinceVersion(String sinceVersion)
public ConfigProperty<T> deprecatedAfter(String deprecatedVersion)
public ConfigProperty<T> withInferFunction(Function<HoodieConfig,Option<T>> inferFunction)
public static ConfigProperty.PropertyBuilder key(String key)
key - The key of the optionCopyright © 2022 The Apache Software Foundation. All rights reserved.