Package io.debezium.connector.sqlserver
Class CustomTestSnapshot
java.lang.Object
io.debezium.connector.sqlserver.snapshot.query.SelectAllSnapshotQuery
io.debezium.connector.sqlserver.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.sqlserver.snapshot.query.SelectAllSnapshotQuery
implements io.debezium.spi.snapshot.Snapshotter, io.debezium.bean.spi.BeanRegistryAware
This is a small class used in PostgresConnectorIT 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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinjectBeanRegistry(io.debezium.bean.spi.BeanRegistry beanRegistry) name()booleanshouldSnapshotData(boolean offsetExists, boolean snapshotInProgress) booleanbooleanbooleanshouldSnapshotSchema(boolean offsetExists, boolean snapshotInProgress) booleansnapshotQuery(String tableId, List<String> snapshotSelectColumns) Methods inherited from class io.debezium.connector.sqlserver.snapshot.query.SelectAllSnapshotQuery
configureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.spi.common.Configurable
configureMethods inherited from interface io.debezium.spi.snapshot.Snapshotter
shouldStreamEventsStartingFromSnapshot, snapshotAborted, snapshotCompleted
-
Field Details
-
hasState
private boolean hasState
-
-
Constructor Details
-
CustomTestSnapshot
public CustomTestSnapshot()
-
-
Method Details
-
name
- Specified by:
namein interfaceio.debezium.snapshot.spi.SnapshotQuery- Specified by:
namein interfaceio.debezium.spi.snapshot.Snapshotter- Overrides:
namein classio.debezium.connector.sqlserver.snapshot.query.SelectAllSnapshotQuery
-
injectBeanRegistry
public void injectBeanRegistry(io.debezium.bean.spi.BeanRegistry beanRegistry) - Specified by:
injectBeanRegistryin interfaceio.debezium.bean.spi.BeanRegistryAware
-
shouldSnapshotData
public boolean shouldSnapshotData(boolean offsetExists, boolean snapshotInProgress) - Specified by:
shouldSnapshotDatain interfaceio.debezium.spi.snapshot.Snapshotter
-
shouldStream
public boolean shouldStream()- Specified by:
shouldStreamin interfaceio.debezium.spi.snapshot.Snapshotter
-
shouldSnapshotSchema
public boolean shouldSnapshotSchema(boolean offsetExists, boolean snapshotInProgress) - Specified by:
shouldSnapshotSchemain interfaceio.debezium.spi.snapshot.Snapshotter
-
shouldSnapshotOnSchemaError
public boolean shouldSnapshotOnSchemaError()- Specified by:
shouldSnapshotOnSchemaErrorin interfaceio.debezium.spi.snapshot.Snapshotter
-
shouldSnapshotOnDataError
public boolean shouldSnapshotOnDataError()- Specified by:
shouldSnapshotOnDataErrorin interfaceio.debezium.spi.snapshot.Snapshotter
-
snapshotQuery
- Specified by:
snapshotQueryin interfaceio.debezium.snapshot.spi.SnapshotQuery- Overrides:
snapshotQueryin classio.debezium.connector.sqlserver.snapshot.query.SelectAllSnapshotQuery
-