public class SourceInfo
extends io.debezium.connector.AbstractSourceInfo
source field in Envelope.| Modifier and Type | Field and Description |
|---|---|
static String |
CHANGE_LSN_KEY |
private Lsn |
changeLsn |
static String |
COMMIT_LSN_KEY |
private Lsn |
commitLsn |
static String |
LOG_TIMESTAMP_KEY |
static org.apache.kafka.connect.data.Schema |
SCHEMA |
static String |
SERVER_NAME_KEY |
private String |
serverName |
private boolean |
snapshot |
static String |
SNAPSHOT_KEY |
private Instant |
sourceTime |
| Modifier | Constructor and Description |
|---|---|
protected |
SourceInfo(String serverName) |
| Modifier and Type | Method and Description |
|---|---|
Lsn |
getChangeLsn() |
Lsn |
getCommitLsn() |
boolean |
isSnapshot() |
protected org.apache.kafka.connect.data.Schema |
schema() |
void |
setChangeLsn(Lsn lsn) |
void |
setCommitLsn(Lsn commitLsn) |
void |
setSnapshot(boolean snapshot) |
void |
setSourceTime(Instant instant) |
org.apache.kafka.connect.data.Struct |
struct() |
public static final String SERVER_NAME_KEY
public static final String LOG_TIMESTAMP_KEY
public static final String CHANGE_LSN_KEY
public static final String COMMIT_LSN_KEY
public static final String SNAPSHOT_KEY
public static final org.apache.kafka.connect.data.Schema SCHEMA
private final String serverName
private Lsn changeLsn
private Lsn commitLsn
private boolean snapshot
private Instant sourceTime
protected SourceInfo(String serverName)
public void setChangeLsn(Lsn lsn)
lsn - - LSN of the change in the database logpublic Lsn getChangeLsn()
public Lsn getCommitLsn()
public void setCommitLsn(Lsn commitLsn)
commitLsn - - LSN of the COMMIT of the transaction whose part the change ispublic void setSourceTime(Instant instant)
instant - a time at which the transaction commit was executedpublic boolean isSnapshot()
public void setSnapshot(boolean snapshot)
snapshot - - true if the source of even is snapshot phase, not the database logprotected org.apache.kafka.connect.data.Schema schema()
schema in class io.debezium.connector.AbstractSourceInfopublic org.apache.kafka.connect.data.Struct struct()
struct in class io.debezium.connector.AbstractSourceInfoStructCopyright © 2018 JBoss by Red Hat. All rights reserved.