public class SourceRecordJson
extends java.lang.Object
SourceRecord
retrieved.
It maps any SourceRecord retrieved from any supported io.debezium.connector
to JSON
It will extract valuable fields from any given SourceRecord:
loadBefore()
loadAfter()
loadMetadata()
Map each SourceRecord to JSON
DebeziumIO.read() .withFormatFunction(new SourceRecordJson.SourceRecordJsonMapper()
Modifier and Type | Class and Description |
---|---|
static class |
SourceRecordJson.SourceRecordJsonMapper
SourceRecordJson implementation. |
Constructor and Description |
---|
SourceRecordJson(@Nullable org.apache.kafka.connect.source.SourceRecord sourceRecord)
Initializer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJson()
Transforms the extracted data to a JSON string.
|