public class DebeziumJsonSerializationSchema extends Object implements SerializationSchema<RowData>
RowData
to Debezium
JSON.SerializationSchema.InitializationContext
Constructor and Description |
---|
DebeziumJsonSerializationSchema(RowType rowType,
TimestampFormat timestampFormat,
JsonFormatOptions.MapNullKeyMode mapNullKeyMode,
String mapNullKeyLiteral,
boolean encodeDecimalAsPlainNumber) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
void |
open(SerializationSchema.InitializationContext context)
Initialization method for the schema.
|
byte[] |
serialize(RowData rowData)
Serializes the incoming element to a specified type.
|
public DebeziumJsonSerializationSchema(RowType rowType, TimestampFormat timestampFormat, JsonFormatOptions.MapNullKeyMode mapNullKeyMode, String mapNullKeyLiteral, boolean encodeDecimalAsPlainNumber)
public void open(SerializationSchema.InitializationContext context)
SerializationSchema
SerializationSchema.serialize(Object)
and thus suitable for one time setup work.
The provided SerializationSchema.InitializationContext
can be used to access additional features such
as e.g. registering user metrics.
open
in interface SerializationSchema<RowData>
context
- Contextual information that can be used during initialization.public byte[] serialize(RowData rowData)
SerializationSchema
serialize
in interface SerializationSchema<RowData>
rowData
- The incoming element to be serializedCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.