@PublicEvolving public class JsonRowSerializationSchema extends Object implements org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row>
Serializes the input Flink object into a JSON string and
converts it into byte[].
Result byte[] messages can be deserialized using JsonRowDeserializationSchema.
| Constructor and Description |
|---|
JsonRowSerializationSchema(String jsonSchema)
Creates a JSON serialization schema for the given JSON schema.
|
JsonRowSerializationSchema(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
Creates a JSON serialization schema for the given type information.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
byte[] |
serialize(org.apache.flink.types.Row row) |
public JsonRowSerializationSchema(org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> typeInfo)
typeInfo - The field names of Row are used to map to JSON properties.public JsonRowSerializationSchema(String jsonSchema)
jsonSchema - JSON schema describing the result typeCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.