Class CustomTestSnapshot

java.lang.Object
io.debezium.connector.mariadb.snapshot.query.SelectAllSnapshotQuery
io.debezium.connector.mariadb.CustomTestSnapshot
All Implemented Interfaces:
io.debezium.bean.spi.BeanRegistryAware, io.debezium.service.Service, io.debezium.snapshot.spi.SnapshotQuery, io.debezium.spi.common.Configurable, io.debezium.spi.snapshot.Snapshotter

public class CustomTestSnapshot extends io.debezium.connector.mariadb.snapshot.query.SelectAllSnapshotQuery implements io.debezium.spi.snapshot.Snapshotter, io.debezium.bean.spi.BeanRegistryAware
This is a small class used in CustomSnapshotterIT to test a custom snapshot It is tightly coupled to the test there, but needs to be placed here in order to allow for class loading to work
  • Field Details

    • hasState

      private boolean hasState
  • Constructor Details

    • CustomTestSnapshot

      public CustomTestSnapshot()
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface io.debezium.snapshot.spi.SnapshotQuery
      Specified by:
      name in interface io.debezium.spi.snapshot.Snapshotter
      Overrides:
      name in class io.debezium.connector.mariadb.snapshot.query.SelectAllSnapshotQuery
    • injectBeanRegistry

      public void injectBeanRegistry(io.debezium.bean.spi.BeanRegistry beanRegistry)
      Specified by:
      injectBeanRegistry in interface io.debezium.bean.spi.BeanRegistryAware
    • shouldSnapshotData

      public boolean shouldSnapshotData(boolean offsetExists, boolean snapshotInProgress)
      Specified by:
      shouldSnapshotData in interface io.debezium.spi.snapshot.Snapshotter
    • shouldStream

      public boolean shouldStream()
      Specified by:
      shouldStream in interface io.debezium.spi.snapshot.Snapshotter
    • shouldSnapshotSchema

      public boolean shouldSnapshotSchema(boolean offsetExists, boolean snapshotInProgress)
      Specified by:
      shouldSnapshotSchema in interface io.debezium.spi.snapshot.Snapshotter
    • shouldSnapshotOnSchemaError

      public boolean shouldSnapshotOnSchemaError()
      Specified by:
      shouldSnapshotOnSchemaError in interface io.debezium.spi.snapshot.Snapshotter
    • shouldSnapshotOnDataError

      public boolean shouldSnapshotOnDataError()
      Specified by:
      shouldSnapshotOnDataError in interface io.debezium.spi.snapshot.Snapshotter
    • snapshotQuery

      public Optional<String> snapshotQuery(String tableId, List<String> snapshotSelectColumns)
      Specified by:
      snapshotQuery in interface io.debezium.snapshot.spi.SnapshotQuery
      Overrides:
      snapshotQuery in class io.debezium.connector.mariadb.snapshot.query.SelectAllSnapshotQuery