@PublicEvolving public class JsonRowSerializationSchema extends Object implements SerializationSchema<Row>
Serializes the input Flink object into a JSON string and
converts it into byte[]
.
Result byte[]
messages can be deserialized using JsonRowDeserializationSchema
.
Modifier and Type | Class and Description |
---|---|
static class |
JsonRowSerializationSchema.Builder
Builder for
JsonRowSerializationSchema . |
Constructor and Description |
---|
JsonRowSerializationSchema(TypeInformation<Row> typeInfo)
Deprecated.
Use the provided
JsonRowSerializationSchema.Builder instead. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
byte[] |
serialize(Row row)
Serializes the incoming element to a specified type.
|
@Deprecated public JsonRowSerializationSchema(TypeInformation<Row> typeInfo)
JsonRowSerializationSchema.Builder
instead.public byte[] serialize(Row row)
SerializationSchema
serialize
in interface SerializationSchema<Row>
row
- The incoming element to be serializedCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.