public static class JsonRowDeserializationSchema.Builder extends Object
JsonRowDeserializationSchema.| Constructor and Description |
|---|
Builder(String jsonSchema)
Creates a JSON deserialization schema for the given JSON schema.
|
Builder(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Creates a JSON deserialization schema for the given type information.
|
| Modifier and Type | Method and Description |
|---|---|
JsonRowDeserializationSchema |
build() |
JsonRowDeserializationSchema.Builder |
failOnMissingField()
Configures schema to fail if a JSON field is missing.
|
public Builder(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 Builder(String jsonSchema)
jsonSchema - JSON schema describing the result typepublic JsonRowDeserializationSchema.Builder failOnMissingField()
By default, a missing field is ignored and the field is set to null.
public JsonRowDeserializationSchema build()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.