Package org.apache.flink.configuration
Class ConfigOptions.OptionBuilder
- java.lang.Object
-
- org.apache.flink.configuration.ConfigOptions.OptionBuilder
-
- Enclosing class:
- ConfigOptions
public static final class ConfigOptions.OptionBuilder extends Object
The option builder is used to create aConfigOption
. It is instantiated viaConfigOptions.key(String)
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigOptions.TypedConfigOptionBuilder<Boolean>
booleanType()
Defines that the value of the option should be ofBoolean
type.ConfigOptions.TypedConfigOptionBuilder<Double>
doubleType()
Defines that the value of the option should be ofDouble
type.ConfigOptions.TypedConfigOptionBuilder<Duration>
durationType()
Defines that the value of the option should be ofDuration
type.<T extends Enum<T>>
ConfigOptions.TypedConfigOptionBuilder<T>enumType(Class<T> enumClass)
Defines that the value of the option should be ofEnum
type.ConfigOptions.TypedConfigOptionBuilder<Float>
floatType()
Defines that the value of the option should be ofFloat
type.ConfigOptions.TypedConfigOptionBuilder<Integer>
intType()
Defines that the value of the option should be ofInteger
type.ConfigOptions.TypedConfigOptionBuilder<Long>
longType()
Defines that the value of the option should be ofLong
type.ConfigOptions.TypedConfigOptionBuilder<Map<String,String>>
mapType()
Defines that the value of the option should be a set of properties, which can be represented asMap<String, String>
.ConfigOptions.TypedConfigOptionBuilder<MemorySize>
memoryType()
Defines that the value of the option should be ofMemorySize
type.ConfigOptions.TypedConfigOptionBuilder<String>
stringType()
Defines that the value of the option should be ofString
type.
-
-
-
Method Detail
-
booleanType
public ConfigOptions.TypedConfigOptionBuilder<Boolean> booleanType()
Defines that the value of the option should be ofBoolean
type.
-
intType
public ConfigOptions.TypedConfigOptionBuilder<Integer> intType()
Defines that the value of the option should be ofInteger
type.
-
longType
public ConfigOptions.TypedConfigOptionBuilder<Long> longType()
Defines that the value of the option should be ofLong
type.
-
floatType
public ConfigOptions.TypedConfigOptionBuilder<Float> floatType()
Defines that the value of the option should be ofFloat
type.
-
doubleType
public ConfigOptions.TypedConfigOptionBuilder<Double> doubleType()
Defines that the value of the option should be ofDouble
type.
-
stringType
public ConfigOptions.TypedConfigOptionBuilder<String> stringType()
Defines that the value of the option should be ofString
type.
-
durationType
public ConfigOptions.TypedConfigOptionBuilder<Duration> durationType()
Defines that the value of the option should be ofDuration
type.
-
memoryType
public ConfigOptions.TypedConfigOptionBuilder<MemorySize> memoryType()
Defines that the value of the option should be ofMemorySize
type.
-
enumType
public <T extends Enum<T>> ConfigOptions.TypedConfigOptionBuilder<T> enumType(Class<T> enumClass)
Defines that the value of the option should be ofEnum
type.- Parameters:
enumClass
- Concrete type of the expected enum.
-
mapType
public ConfigOptions.TypedConfigOptionBuilder<Map<String,String>> mapType()
Defines that the value of the option should be a set of properties, which can be represented asMap<String, String>
.
-
-