Package org.apache.gravitino.config
Class ConfigBuilder
java.lang.Object
org.apache.gravitino.config.ConfigBuilder
Builder class for creating configuration entries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalternatives
(List<String> alternatives) Sets the alternatives for the configuration.Creates a configuration entry for Boolean data type.Marks the configuration entry as deprecated.Sets the documentation for the configuration.Creates a configuration entry for Double data type.intConf()
Creates a configuration entry for Integer data type.internal()
Marks the configuration entry as internal (non-public).longConf()
Creates a configuration entry for Long data type.Creates a configuration entry for String data type.Sets the version for the configuration.
-
Constructor Details
-
ConfigBuilder
Constructs a ConfigBuilder with the given key.- Parameters:
key
- The key for the configuration.
-
-
Method Details
-
alternatives
Sets the alternatives for the configuration.- Parameters:
alternatives
- The list of alternative keys.- Returns:
- The current ConfigBuilder instance.
-
doc
Sets the documentation for the configuration.- Parameters:
doc
- The documentation string.- Returns:
- The current ConfigBuilder instance.
-
version
Sets the version for the configuration.- Parameters:
version
- The version string.- Returns:
- The current ConfigBuilder instance.
-
internal
Marks the configuration entry as internal (non-public).- Returns:
- The current ConfigBuilder instance.
-
deprecated
Marks the configuration entry as deprecated.- Returns:
- The current ConfigBuilder instance.
-
stringConf
Creates a configuration entry for String data type.- Returns:
- The created ConfigEntry instance for String data type.
-
intConf
Creates a configuration entry for Integer data type.- Returns:
- The created ConfigEntry instance for Integer data type.
-
longConf
Creates a configuration entry for Long data type.- Returns:
- The created ConfigEntry instance for Long data type.
-
doubleConf
Creates a configuration entry for Double data type.- Returns:
- The created ConfigEntry instance for Double data type.
-
booleanConf
Creates a configuration entry for Boolean data type.- Returns:
- The created ConfigEntry instance for Boolean data type.
-