Class InitialOnlySnapshotter
- java.lang.Object
-
- io.debezium.connector.postgresql.snapshot.QueryingSnapshotter
-
- io.debezium.connector.postgresql.snapshot.InitialOnlySnapshotter
-
- All Implemented Interfaces:
Snapshotter
public class InitialOnlySnapshotter extends QueryingSnapshotter
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGGERprivate OffsetStatesourceInfo
-
Constructor Summary
Constructors Constructor Description InitialOnlySnapshotter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(PostgresConnectorConfig config, OffsetState sourceInfo, SlotState slotState)booleanshouldSnapshot()booleanshouldStream()-
Methods inherited from class io.debezium.connector.postgresql.snapshot.QueryingSnapshotter
buildSnapshotQuery, snapshotTableLockingStatement, snapshotTransactionIsolationLevelStatement
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.debezium.connector.postgresql.spi.Snapshotter
shouldStreamEventsStartingFromSnapshot, snapshotCompleted
-
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
sourceInfo
private OffsetState sourceInfo
-
-
Method Detail
-
init
public void init(PostgresConnectorConfig config, OffsetState sourceInfo, SlotState slotState)
- Specified by:
initin interfaceSnapshotter- Overrides:
initin classQueryingSnapshotter
-
shouldStream
public boolean shouldStream()
- Returns:
- true if the snapshotter should stream after taking a snapshot
-
shouldSnapshot
public boolean shouldSnapshot()
- Returns:
- true if the snapshotter should take a snapshot
-
-