public static final class Options.OptionBuilder extends Object
Option. It is instantiated via Options.key(String).| 限定符和类型 | 方法和说明 |
|---|---|
Options.TypedOptionBuilder<BigDecimal> |
bigDecimalType()
Defines that the value of the option should be of
BigDecimal type. |
Options.TypedOptionBuilder<Boolean> |
booleanType()
Defines that the value of the option should be of
Boolean type. |
Options.TypedOptionBuilder<Double> |
doubleType()
Defines that the value of the option should be of
Double type. |
Options.TypedOptionBuilder<java.time.Duration> |
durationType()
Defines that the value of the option should be of
Duration type. |
<T extends Enum<T>> |
enumType(Class<T> enumClass)
Defines that the value of the option should be of
Enum type. |
Options.TypedOptionBuilder<Float> |
floatType()
Defines that the value of the option should be of
Float type. |
Options.TypedOptionBuilder<Integer> |
intType()
Defines that the value of the option should be of
Integer type. |
Options.TypedOptionBuilder<List<String>> |
listType()
Defines that the value of the option should be a list of properties, which can be
represented as
List<String>. |
<T> Options.TypedOptionBuilder<List<T>> |
listType(Class<T> subClass)
Defines that the value of the option should be a list of properties, which can be
represented as
List<T>. |
Options.TypedOptionBuilder<Long> |
longType()
Defines that the value of the option should be of
Long type. |
Options.TypedOptionBuilder<Map<String,String>> |
mapType()
Defines that the value of the option should be a set of properties, which can be
represented as
Map<String, String>. |
<T> Options.TypedOptionBuilder<T> |
objectType(Class<T> option) |
<T> Options.SingleChoiceOptionBuilder<T> |
singleChoice(@NonNull Class<T> optionType,
@NonNull List<T> optionValues)
Construct an option with multiple options and only one of them can be selected
|
Options.TypedOptionBuilder<String> |
stringType()
Defines that the value of the option should be of
String type. |
<T> Options.TypedOptionBuilder<T> |
type(org.apache.seatunnel.shade.com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
The value of the definition option should be represented as T.
|
public Options.TypedOptionBuilder<Boolean> booleanType()
Boolean type.public Options.TypedOptionBuilder<Integer> intType()
Integer type.public Options.TypedOptionBuilder<Long> longType()
Long type.public Options.TypedOptionBuilder<BigDecimal> bigDecimalType()
BigDecimal type.public Options.TypedOptionBuilder<Float> floatType()
Float type.public Options.TypedOptionBuilder<Double> doubleType()
Double type.public Options.TypedOptionBuilder<String> stringType()
String type.public Options.TypedOptionBuilder<java.time.Duration> durationType()
Duration type.public <T extends Enum<T>> Options.TypedOptionBuilder<T> enumType(Class<T> enumClass)
Enum type.enumClass - Concrete type of the expected enum.public Options.TypedOptionBuilder<Map<String,String>> mapType()
Map<String, String>.public Options.TypedOptionBuilder<List<String>> listType()
List<String>.public <T> Options.TypedOptionBuilder<List<T>> listType(Class<T> subClass)
List<T>.public <T> Options.TypedOptionBuilder<T> objectType(Class<T> option)
public <T> Options.SingleChoiceOptionBuilder<T> singleChoice(@NonNull @NonNull Class<T> optionType, @NonNull @NonNull List<T> optionValues)
public <T> Options.TypedOptionBuilder<T> type(org.apache.seatunnel.shade.com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
typeReference - complex type referenceCopyright © 2024 The Apache Software Foundation. All rights reserved.