Package io.debezium.connector.binlog
Class BinlogReadOnlyIncrementalSnapshotChangeEventSource<P extends BinlogPartition,O extends BinlogOffsetContext>
java.lang.Object
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource<P,TableId>
io.debezium.connector.binlog.BinlogReadOnlyIncrementalSnapshotChangeEventSource<P,O>
- All Implemented Interfaces:
IncrementalSnapshotChangeEventSource<P,TableId>
public abstract class BinlogReadOnlyIncrementalSnapshotChangeEventSource<P extends BinlogPartition,O extends BinlogOffsetContext>
extends AbstractIncrementalSnapshotChangeEventSource<P,TableId>
- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GtidSetFactoryprivate static final org.slf4j.Loggerprivate static final StringFields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource
chunkQueryBuilder, connectorConfig, context, dispatcher, jdbcConnection, notificationService, window -
Constructor Summary
ConstructorsConstructorDescriptionBinlogReadOnlyIncrementalSnapshotChangeEventSource(BinlogConnectorConfig connectorConfig, JdbcConnection jdbcConnection, EventDispatcher<P, TableId> dispatcher, DatabaseSchema<?> databaseSchema, Clock clock, SnapshotProgressListener<P> progressListener, DataChangeEventListener<P> dataChangeEventListener, NotificationService<P, O> notificationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataCollectionNamesToSnapshot(SignalPayload<P> signalPayload, SnapshotConfiguration snapshotConfiguration) protected voidemitWindowClose(P partition, OffsetContext offsetContext) protected voidprotected abstract voidgetExecutedGtidSet(Consumer<GtidSet> watermark) voidprocessFilteredEvent(P partition, OffsetContext offsetContext) voidprocessHeartbeat(P partition, OffsetContext offsetContext) voidprocessMessage(P partition, io.debezium.spi.schema.DataCollectionId dataCollectionId, Object key, OffsetContext offsetContext) voidprocessTransactionCommittedEvent(P partition, OffsetContext offsetContext) voidprocessTransactionStartedEvent(P partition, OffsetContext offsetContext) private voidreadUntilGtidChange(P partition, OffsetContext offsetContext) protected voidsendEvent(P partition, EventDispatcher<P, TableId> dispatcher, OffsetContext offsetContext, Object[] row) voidstopSnapshot(P partition, OffsetContext offsetContext, Map<String, Object> additionalData, List<String> dataCollectionIds) private voidprivate voidMethods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource
closeWindow, deduplicateWindow, getChangeRecordEmitter, getSignalTableName, init, pauseSnapshot, postIncrementalSnapshotCompleted, postReadChunk, preReadChunk, processSchemaChange, readChunk, refreshTableSchema, rereadChunk, resumeSnapshot, sendWindowEvents, setContext
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SHOW_MASTER_STMT
- See Also:
-
gtidSetFactory
-
-
Constructor Details
-
BinlogReadOnlyIncrementalSnapshotChangeEventSource
public BinlogReadOnlyIncrementalSnapshotChangeEventSource(BinlogConnectorConfig connectorConfig, JdbcConnection jdbcConnection, EventDispatcher<P, TableId> dispatcher, DatabaseSchema<?> databaseSchema, Clock clock, SnapshotProgressListener<P> progressListener, DataChangeEventListener<P> dataChangeEventListener, NotificationService<P, O> notificationService)
-
-
Method Details
-
processMessage
public void processMessage(P partition, io.debezium.spi.schema.DataCollectionId dataCollectionId, Object key, OffsetContext offsetContext) throws InterruptedException - Throws:
InterruptedException
-
processHeartbeat
- Throws:
InterruptedException
-
processFilteredEvent
public void processFilteredEvent(P partition, OffsetContext offsetContext) throws InterruptedException - Throws:
InterruptedException
-
processTransactionStartedEvent
public void processTransactionStartedEvent(P partition, OffsetContext offsetContext) throws InterruptedException - Throws:
InterruptedException
-
processTransactionCommittedEvent
public void processTransactionCommittedEvent(P partition, OffsetContext offsetContext) throws InterruptedException - Throws:
InterruptedException
-
emitWindowOpen
protected void emitWindowOpen()- Specified by:
emitWindowOpenin classAbstractIncrementalSnapshotChangeEventSource<P extends BinlogPartition,TableId>
-
emitWindowClose
- Specified by:
emitWindowClosein classAbstractIncrementalSnapshotChangeEventSource<P extends BinlogPartition,TableId> - Throws:
Exception
-
sendEvent
protected void sendEvent(P partition, EventDispatcher<P, TableId> dispatcher, OffsetContext offsetContext, Object[] row) throws InterruptedException- Overrides:
sendEventin classAbstractIncrementalSnapshotChangeEventSource<P extends BinlogPartition,TableId> - Throws:
InterruptedException
-
addDataCollectionNamesToSnapshot
public void addDataCollectionNamesToSnapshot(SignalPayload<P> signalPayload, SnapshotConfiguration snapshotConfiguration) throws InterruptedException - Specified by:
addDataCollectionNamesToSnapshotin interfaceIncrementalSnapshotChangeEventSource<P extends BinlogPartition,O extends BinlogOffsetContext> - Overrides:
addDataCollectionNamesToSnapshotin classAbstractIncrementalSnapshotChangeEventSource<P extends BinlogPartition,TableId> - Throws:
InterruptedException
-
stopSnapshot
public void stopSnapshot(P partition, OffsetContext offsetContext, Map<String, Object> additionalData, List<String> dataCollectionIds) - Specified by:
stopSnapshotin interfaceIncrementalSnapshotChangeEventSource<P extends BinlogPartition,O extends BinlogOffsetContext> - Overrides:
stopSnapshotin classAbstractIncrementalSnapshotChangeEventSource<P extends BinlogPartition,TableId>
-
getContext
-
readUntilGtidChange
private void readUntilGtidChange(P partition, OffsetContext offsetContext) throws InterruptedException - Throws:
InterruptedException
-
updateLowWatermark
private void updateLowWatermark() -
updateHighWatermark
private void updateHighWatermark() -
getExecutedGtidSet
-