Package org.apache.flink.formats.json
Class JsonRowDeserializationSchema.Builder
java.lang.Object
org.apache.flink.formats.json.JsonRowDeserializationSchema.Builder
- Enclosing class:
- JsonRowDeserializationSchema
Builder for
JsonRowDeserializationSchema.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Configures schema to fail if a JSON field is missing.Configures schema to fail when parsing json failed.
-
Constructor Details
-
Builder
public Builder(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo) Creates a JSON deserialization schema for the given type information.- Parameters:
typeInfo- Type information describing the result type. The field names ofRoware used to parse the JSON properties.
-
Builder
Creates a JSON deserialization schema for the given JSON schema.- Parameters:
jsonSchema- JSON schema describing the result type- See Also:
-
-
Method Details
-
failOnMissingField
Configures schema to fail if a JSON field is missing.By default, a missing field is ignored and the field is set to null.
-
ignoreParseErrors
Configures schema to fail when parsing json failed.By default, an exception will be thrown when parsing json fails.
-
build
-