Class NeverSnapshotter

java.lang.Object
io.debezium.connector.postgresql.snapshot.NeverSnapshotter
All Implemented Interfaces:
Snapshotter

public class NeverSnapshotter extends Object implements Snapshotter
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • NeverSnapshotter

      public NeverSnapshotter()
  • Method Details

    • init

      public void init(PostgresConnectorConfig config, OffsetState sourceInfo, SlotState slotState)
      Specified by:
      init in interface Snapshotter
    • shouldStream

      public boolean shouldStream()
      Specified by:
      shouldStream in interface Snapshotter
      Returns:
      true if the snapshotter should stream after taking a snapshot
    • shouldSnapshot

      public boolean shouldSnapshot()
      Specified by:
      shouldSnapshot in interface Snapshotter
      Returns:
      true if the snapshotter should take a snapshot
    • buildSnapshotQuery

      public Optional<String> buildSnapshotQuery(TableId tableId, List<String> snapshotSelectColumns)
      Description copied from interface: Snapshotter
      Generate a valid postgres query string for the specified table, or an empty Optional to skip snapshotting this table (but that table will still be streamed from)
      Specified by:
      buildSnapshotQuery in interface Snapshotter
      Parameters:
      tableId - the table to generate a query for
      snapshotSelectColumns - 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