@PublicEvolving public static final class JsonRowSerializationSchema.Builder extends Object
JsonRowSerializationSchema
.Modifier and Type | Method and Description |
---|---|
JsonRowSerializationSchema |
build()
Finalizes the configuration and checks validity.
|
JsonRowSerializationSchema.Builder |
withNormalizationFunction(Function<Consumer<com.fasterxml.jackson.databind.node.ObjectNode>,com.fasterxml.jackson.databind.node.ObjectNode> normalization)
The normalization function to apply on the provided event data.
|
JsonRowSerializationSchema.Builder |
withObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) |
JsonRowSerializationSchema.Builder |
withoutNormalization()
Do not apply any normalization to serialized events.
|
JsonRowSerializationSchema.Builder |
withTypeInfo(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Sets type information for JSON serialization schema.
|
public JsonRowSerializationSchema.Builder withTypeInfo(@Nonnull org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
typeInfo
- Type information describing the result type. The field names of Row
are used to parse the JSON properties.public JsonRowSerializationSchema.Builder withNormalizationFunction(Function<Consumer<com.fasterxml.jackson.databind.node.ObjectNode>,com.fasterxml.jackson.databind.node.ObjectNode> normalization)
public JsonRowSerializationSchema.Builder withoutNormalization()
public JsonRowSerializationSchema.Builder withObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
public JsonRowSerializationSchema build()
JsonRowSerializationSchema
Copyright © 2024. All rights reserved.