Class NeverSnapshotter
java.lang.Object
io.debezium.connector.postgresql.snapshot.NeverSnapshotter
- All Implemented Interfaces:
Snapshotter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSnapshotQuery(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) booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.connector.postgresql.spi.Snapshotter
shouldStreamEventsStartingFromSnapshot, snapshotAborted, snapshotCompleted, snapshotTableLockingStatement, snapshotTransactionIsolationLevelStatement
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
NeverSnapshotter
public NeverSnapshotter()
-
-
Method Details
-
init
- 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
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
-