Package org.apache.flink.formats.json
Class JsonRowSerializationSchema.Builder
java.lang.Object
org.apache.flink.formats.json.JsonRowSerializationSchema.Builder
- Enclosing class:
- JsonRowSerializationSchema
Builder for
JsonRowSerializationSchema.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finalizes the configuration and checks validity.withTypeInfo(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo) Sets type information for JSON serialization schema.
-
Constructor Details
-
Builder
public Builder(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo) Creates a JSON serialization 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 serialization schema for the given JSON schema.- Parameters:
jsonSchema- JSON schema describing the result type- See Also:
-
-
Method Details
-
withTypeInfo
public JsonRowSerializationSchema.Builder withTypeInfo(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo) Sets type information for JSON serialization schema.- Parameters:
typeInfo- Type information describing the result type. The field names ofRoware used to parse the JSON properties.
-
build
Finalizes the configuration and checks validity.- Returns:
- Configured
JsonRowSerializationSchema
-