@Internal public class DebeziumOffset extends Object implements Serializable
This class describes the most basic state that Debezium used for recovering based on Kafka Connect mechanism. It includes a sourcePartition and sourceOffset.
The sourcePartition represents a single input sourcePartition that the record came from (e.g. a filename, table name, or topic-partition). The sourceOffset represents a position in that sourcePartition which can be used to resume consumption of data.
These values can have arbitrary structure and should be represented using org.apache.kafka.connect.data objects (or primitive values). For example, a database connector might specify the sourcePartition as a record containing { "db": "database_name", "table": "table_name"} and the sourceOffset as a Long containing the timestamp of the row.
| Modifier and Type | Field and Description |
|---|---|
Map<String,?> |
sourceOffset |
Map<String,?> |
sourcePartition |
| Constructor and Description |
|---|
DebeziumOffset() |
| Modifier and Type | Method and Description |
|---|---|
void |
setSourceOffset(Map<String,?> sourceOffset) |
void |
setSourcePartition(Map<String,?> sourcePartition) |
String |
toString() |
Copyright © 2022 The Apache Software Foundation. All rights reserved.