@PublicEvolving public static class FormatDescriptor.Builder extends Object
FormatDescriptor
.Modifier and Type | Method and Description |
---|---|
FormatDescriptor |
build()
Returns an immutable instance of
FormatDescriptor . |
<T> FormatDescriptor.Builder |
option(ConfigOption<T> configOption,
T value)
Sets the given option on the format.
|
FormatDescriptor.Builder |
option(String key,
String value)
Sets the given option on the format.
|
public <T> FormatDescriptor.Builder option(ConfigOption<T> configOption, T value)
public FormatDescriptor.Builder option(String key, String value)
Note that format options must not be prefixed with the format identifier itself here. For example,
FormatDescriptor.forFormat("json")
.option("ignore-parse-errors", "true")
.build();
will automatically be converted into its prefixed form:
'format' = 'json'
'json.ignore-parse-errors' = 'true'
public FormatDescriptor build()
FormatDescriptor
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.