Package io.debezium.connector.common
Class BaseSourceInfo
- java.lang.Object
-
- io.debezium.connector.AbstractSourceInfo
-
- io.debezium.connector.common.BaseSourceInfo
-
public abstract class BaseSourceInfo extends AbstractSourceInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected SnapshotRecord
snapshotRecord
-
Fields inherited from class io.debezium.connector.AbstractSourceInfo
COLLECTION_NAME_KEY, DATABASE_NAME_KEY, DEBEZIUM_CONNECTOR_KEY, DEBEZIUM_VERSION_KEY, SCHEMA_NAME_KEY, SEQUENCE_KEY, SERVER_NAME_KEY, SNAPSHOT_KEY, TABLE_NAME_KEY, TIMESTAMP_KEY
-
-
Constructor Summary
Constructors Constructor Description BaseSourceInfo(CommonConnectorConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSnapshot()
void
setSnapshot(SnapshotRecord snapshot)
protected SnapshotRecord
snapshot()
-
Methods inherited from class io.debezium.connector.AbstractSourceInfo
database, schema, sequence, serverName, struct, structMaker, timestamp
-
-
-
-
Field Detail
-
snapshotRecord
protected SnapshotRecord snapshotRecord
-
-
Constructor Detail
-
BaseSourceInfo
public BaseSourceInfo(CommonConnectorConfig config)
-
-
Method Detail
-
isSnapshot
public boolean isSnapshot()
-
setSnapshot
public void setSnapshot(SnapshotRecord snapshot)
- Parameters:
snapshot
- - TRUE if the source of even is snapshot phase, not the database log
-
snapshot
protected SnapshotRecord snapshot()
- Specified by:
snapshot
in classAbstractSourceInfo
- Returns:
- status whether the record is from snapshot or streaming phase
-
-