public final 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
.
(Copied from the flink code-base and adapted)
Modifier and Type | Class and Description |
---|---|
static class |
JsonRowSerializationSchema.Builder
Builder for
JsonRowSerializationSchema . |
Modifier and Type | Method and Description |
---|---|
static JsonRowSerializationSchema.Builder |
builder()
Creates a builder for
JsonRowSerializationSchema.Builder . |
boolean |
equals(Object o) |
org.apache.flink.api.java.typeutils.RowTypeInfo |
getTypeInformation()
The type information supported by this serializer.
|
int |
hashCode() |
byte[] |
serialize(org.apache.flink.types.Row row) |
public org.apache.flink.api.java.typeutils.RowTypeInfo getTypeInformation()
public static JsonRowSerializationSchema.Builder builder()
JsonRowSerializationSchema.Builder
.public byte[] serialize(org.apache.flink.types.Row row)
serialize
in interface org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row>
Copyright © 2024. All rights reserved.