@Internal public final class DebeziumAvroDeserializationSchema extends Object implements org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>
RowData. The deserialization schema knows Debezium's schema definition and can extract the
database data and convert into RowData with RowKind. Deserializes a byte[]
message as a JSON object and reads the specified fields. Failures during deserialization
are forwarded as wrapped IOExceptions.| Constructor and Description |
|---|
DebeziumAvroDeserializationSchema(org.apache.flink.table.types.logical.RowType rowType,
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> producedTypeInfo,
String schemaRegistryUrl,
String schemaString,
Map<String,?> registryConfigs) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.flink.table.types.logical.RowType |
createDebeziumAvroRowType(org.apache.flink.table.types.DataType databaseSchema) |
org.apache.flink.table.data.RowData |
deserialize(byte[] message) |
void |
deserialize(byte[] message,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out) |
boolean |
equals(Object o) |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> |
getProducedType() |
int |
hashCode() |
boolean |
isEndOfStream(org.apache.flink.table.data.RowData nextElement) |
void |
open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context) |
public DebeziumAvroDeserializationSchema(org.apache.flink.table.types.logical.RowType rowType,
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> producedTypeInfo,
String schemaRegistryUrl,
@Nullable
String schemaString,
@Nullable
Map<String,?> registryConfigs)
public void open(org.apache.flink.api.common.serialization.DeserializationSchema.InitializationContext context)
throws Exception
open in interface org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>Exceptionpublic org.apache.flink.table.data.RowData deserialize(byte[] message)
throws IOException
deserialize in interface org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>IOExceptionpublic void deserialize(byte[] message,
org.apache.flink.util.Collector<org.apache.flink.table.data.RowData> out)
throws IOException
deserialize in interface org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>IOExceptionpublic boolean isEndOfStream(org.apache.flink.table.data.RowData nextElement)
isEndOfStream in interface org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.table.data.RowData> getProducedType()
getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.flink.table.data.RowData>public static org.apache.flink.table.types.logical.RowType createDebeziumAvroRowType(org.apache.flink.table.types.DataType databaseSchema)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.