Package org.apache.flink.configuration
Class ConfigOptions
- java.lang.Object
-
- org.apache.flink.configuration.ConfigOptions
-
@PublicEvolving public class ConfigOptions extends Object
ConfigOptions
are used to build aConfigOption
. The option is typically built in one of the following pattern:// simple string-valued option with a default value ConfigOption<String> tempDirs = ConfigOptions .key("tmp.dir") .stringType() .defaultValue("/tmp"); // simple integer-valued option with a default value ConfigOption<Integer> parallelism = ConfigOptions .key("application.parallelism") .intType() .defaultValue(100); // option of list of integers with a default value ConfigOption<Integer> parallelism = ConfigOptions .key("application.ports") .intType() .asList() .defaultValue(8000, 8001, 8002); // option with no default value ConfigOption<String> userName = ConfigOptions .key("user.name") .stringType() .noDefaultValue(); // option with deprecated keys to check ConfigOption<Double> threshold = ConfigOptions .key("cpu.utilization.threshold") .doubleType() .defaultValue(0.9) .withDeprecatedKeys("cpu.threshold");
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfigOptions.ListConfigOptionBuilder<E>
Builder forConfigOption
of list of typeConfigOptions.ListConfigOptionBuilder
.static class
ConfigOptions.OptionBuilder
The option builder is used to create aConfigOption
.static class
ConfigOptions.TypedConfigOptionBuilder<T>
Builder forConfigOption
with a defined atomic type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigOptions.OptionBuilder
key(String key)
Starts building a newConfigOption
.
-
-
-
Method Detail
-
key
public static ConfigOptions.OptionBuilder key(String key)
Starts building a newConfigOption
.- Parameters:
key
- The key for the config option.- Returns:
- The builder for the config option with the given key.
-
-