Package org.apache.flink.table.api
Class FormatDescriptor.Builder
java.lang.Object
org.apache.flink.table.api.FormatDescriptor.Builder
- Enclosing class:
- FormatDescriptor
Builder for
FormatDescriptor.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns an immutable instance ofFormatDescriptor.Sets the given option on the format.option(org.apache.flink.configuration.ConfigOption<T> configOption, T value) Sets the given option on the format.
-
Method Details
-
option
public <T> FormatDescriptor.Builder option(org.apache.flink.configuration.ConfigOption<T> configOption, T value) Sets the given option on the format. -
option
Sets the given option on the format.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' -
build
Returns an immutable instance ofFormatDescriptor.
-