@Internal public class JsonRowDataSerializationSchema extends Object implements SerializationSchema<RowData>
Serializes the input Flink object into a JSON string and converts it into byte[]
.
Result byte[]
messages can be deserialized using JsonRowDataDeserializationSchema
.
SerializationSchema.InitializationContext
Constructor and Description |
---|
JsonRowDataSerializationSchema(RowType rowType,
TimestampFormat timestampFormat) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
byte[] |
serialize(RowData row)
Serializes the incoming element to a specified type.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
open
public JsonRowDataSerializationSchema(RowType rowType, TimestampFormat timestampFormat)
public byte[] serialize(RowData row)
SerializationSchema
serialize
in interface SerializationSchema<RowData>
row
- The incoming element to be serializedCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.