Class SignalBasedIncrementalSnapshotChangeEventSource<P extends Partition,T extends DataCollectionId>
java.lang.Object
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource<P,T>
io.debezium.pipeline.source.snapshot.incremental.SignalBasedIncrementalSnapshotChangeEventSource<P,T>
- All Implemented Interfaces:
IncrementalSnapshotChangeEventSource<P,T>
@NotThreadSafe
public class SignalBasedIncrementalSnapshotChangeEventSource<P extends Partition,T extends DataCollectionId>
extends AbstractIncrementalSnapshotChangeEventSource<P,T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate SignalMetadataprivate final Stringprivate final StringFields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource
chunkQueryBuilder, connectorConfig, context, dispatcher, jdbcConnection, notificationService, window -
Constructor Summary
ConstructorsConstructorDescriptionSignalBasedIncrementalSnapshotChangeEventSource(RelationalDatabaseConnectorConfig config, JdbcConnection jdbcConnection, EventDispatcher<P, T> dispatcher, DatabaseSchema<?> databaseSchema, Clock clock, SnapshotProgressListener<P> progressListener, DataChangeEventListener<P> dataChangeEventListener, NotificationService<P, ? extends OffsetContext> notificationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidemitWindowClose(Partition partition, OffsetContext offsetContext) Update high watermark for the incremental snapshot chunkprotected voidUpdate low watermark for the incremental snapshot chunkprivate WatermarkWindowClosergetWatermarkWindowCloser(CommonConnectorConfig connectorConfig, JdbcConnection jdbcConnection, String signalTable) voidprocessMessage(Partition partition, DataCollectionId dataCollectionId, Object key, OffsetContext offsetContext) Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource
addDataCollectionNamesToSnapshot, closeWindow, deduplicateWindow, getChangeRecordEmitter, getSignalTableName, init, pauseSnapshot, postIncrementalSnapshotCompleted, postReadChunk, preReadChunk, processSchemaChange, readChunk, refreshTableSchema, rereadChunk, resumeSnapshot, sendEvent, sendWindowEvents, setContext, stopSnapshotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotChangeEventSource
processFilteredEvent, processHeartbeat, processTransactionCommittedEvent, processTransactionStartedEvent
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
signalWindowStatement
-
signalWindowDeleteStatement
-
signalMetadata
-
-
Constructor Details
-
SignalBasedIncrementalSnapshotChangeEventSource
public SignalBasedIncrementalSnapshotChangeEventSource(RelationalDatabaseConnectorConfig config, JdbcConnection jdbcConnection, EventDispatcher<P, T> dispatcher, DatabaseSchema<?> databaseSchema, Clock clock, SnapshotProgressListener<P> progressListener, DataChangeEventListener<P> dataChangeEventListener, NotificationService<P, ? extends OffsetContext> notificationService)
-
-
Method Details
-
processMessage
public void processMessage(Partition partition, DataCollectionId dataCollectionId, Object key, OffsetContext offsetContext) -
emitWindowOpen
Description copied from class:AbstractIncrementalSnapshotChangeEventSourceUpdate low watermark for the incremental snapshot chunk- Specified by:
emitWindowOpenin classAbstractIncrementalSnapshotChangeEventSource<P extends Partition,T extends DataCollectionId> - Throws:
SQLException
-
emitWindowClose
Description copied from class:AbstractIncrementalSnapshotChangeEventSourceUpdate high watermark for the incremental snapshot chunk- Specified by:
emitWindowClosein classAbstractIncrementalSnapshotChangeEventSource<P extends Partition,T extends DataCollectionId> - Throws:
Exception
-
getWatermarkWindowCloser
private WatermarkWindowCloser getWatermarkWindowCloser(CommonConnectorConfig connectorConfig, JdbcConnection jdbcConnection, String signalTable)
-