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 Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • sourceInfo

      private OffsetState sourceInfo
  • Constructor Details

    • InitialOnlySnapshotter

      public InitialOnlySnapshotter()
  • Method Details

    • init

      public void init(PostgresConnectorConfig config, OffsetState sourceInfo, SlotState slotState)
      Specified by:
      init in interface Snapshotter
      Overrides:
      init in class QueryingSnapshotter
    • 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