Class NeverSnapshotter
- java.lang.Object
-
- io.debezium.connector.postgresql.snapshot.NeverSnapshotter
-
- All Implemented Interfaces:
Snapshotter
public class NeverSnapshotter extends Object implements Snapshotter
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description NeverSnapshotter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>buildSnapshotQuery(TableId tableId, List<String> snapshotSelectColumns)Generate a valid postgres query string for the specified table, or an emptyOptionalto skip snapshotting this table (but that table will still be streamed from)voidinit(PostgresConnectorConfig config, OffsetState sourceInfo, SlotState slotState)booleanshouldSnapshot()booleanshouldStream()-
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, snapshotTableLockingStatement, snapshotTransactionIsolationLevelStatement
-
-
-
-
Method Detail
-
init
public void init(PostgresConnectorConfig config, OffsetState sourceInfo, SlotState slotState)
- Specified by:
initin interfaceSnapshotter
-
shouldStream
public boolean shouldStream()
- Specified by:
shouldStreamin interfaceSnapshotter- Returns:
- true if the snapshotter should stream after taking a snapshot
-
shouldSnapshot
public boolean shouldSnapshot()
- Specified by:
shouldSnapshotin interfaceSnapshotter- Returns:
- true if the snapshotter should take a snapshot
-
buildSnapshotQuery
public Optional<String> buildSnapshotQuery(TableId tableId, List<String> snapshotSelectColumns)
Description copied from interface:SnapshotterGenerate a valid postgres query string for the specified table, or an emptyOptionalto skip snapshotting this table (but that table will still be streamed from)- Specified by:
buildSnapshotQueryin interfaceSnapshotter- Parameters:
tableId- the table to generate a query forsnapshotSelectColumns- the columns to be used in the snapshot select based on the column include/exclude filters- Returns:
- a valid query string, or none to skip snapshotting this table
-
-