@Internal public class DebeziumAvroSerializationSchema extends Object implements SerializationSchema<RowData>
RowData
to Debezium
Avro.SerializationSchema.InitializationContext
Constructor and Description |
---|
DebeziumAvroSerializationSchema(RowType rowType,
String schemaRegistryUrl,
String schemaRegistrySubject,
Map<String,?> registryConfigs) |
DebeziumAvroSerializationSchema(RowType rowType,
String schemaRegistryUrl,
String schemaRegistrySubject,
String schemaString,
Map<String,?> registryConfigs) |
Modifier and Type | Method and Description |
---|---|
static RowType |
createDebeziumAvroRowType(DataType dataType) |
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 DebeziumAvroSerializationSchema(RowType rowType, String schemaRegistryUrl, String schemaRegistrySubject, @Nullable Map<String,?> registryConfigs)
public void open(SerializationSchema.InitializationContext context) throws Exception
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.Exception
public byte[] serialize(RowData rowData)
SerializationSchema
serialize
in interface SerializationSchema<RowData>
rowData
- The incoming element to be serializedCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.