Package io.debezium.connector.mysql
Class MySqlReadOnlyIncrementalSnapshotContext<T>
java.lang.Object
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotContext<T>
io.debezium.connector.binlog.BinlogReadOnlyIncrementalSnapshotContext<T>
io.debezium.connector.mysql.MySqlReadOnlyIncrementalSnapshotContext<T>
- All Implemented Interfaces:
IncrementalSnapshotContext<T>
public class MySqlReadOnlyIncrementalSnapshotContext<T>
extends BinlogReadOnlyIncrementalSnapshotContext<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MySqlGtidSetprivate static final org.slf4j.Loggerprivate MySqlGtidSetprivate MySqlGtidSetprivate MySqlGtidSetFields inherited from class io.debezium.connector.binlog.BinlogReadOnlyIncrementalSnapshotContext
SIGNAL_OFFSETFields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotContext
CORRELATION_ID, EVENT_PRIMARY_KEY, INCREMENTAL_SNAPSHOT_KEY, TABLE_MAXIMUM_KEY, windowOpened -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate MySqlGtidSet.UUIDSetgetUuidSet(String serverId) booleanstatic <U> MySqlReadOnlyIncrementalSnapshotContext<U>static <U> MySqlReadOnlyIncrementalSnapshotContext<U>booleanreachedHighWatermark(String currentGtid) private booleanvoidsetHighWatermark(GtidSet highWatermark) voidsetLowWatermark(GtidSet lowWatermark) booleanupdateWindowState(OffsetContext offsetContext) booleanMethods inherited from class io.debezium.connector.binlog.BinlogReadOnlyIncrementalSnapshotContext
getCurrentGtid, getSignalOffset, init, setSignalOffset, storeMethods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotContext
addDataCollectionNamesToSnapshot, chunkEndPosititon, closeWindow, currentChunkId, currentDataCollectionId, dataCollectionsToBeSnapshottedCount, deduplicationNeeded, getCorrelationId, getDataCollections, getSchema, init, isNonInitialChunk, isSchemaVerificationPassed, isSnapshotPaused, maximumKey, maximumKey, nextChunkPosition, nextDataCollection, openWindow, pauseSnapshot, removeDataCollectionFromSnapshot, resumeSnapshot, revertChunk, sendEvent, setSchema, setSchemaVerificationPassed, snapshotRunning, startNewChunk, stopSnapshot, toString, unsetCorrelationId
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
previousLowWatermark
-
previousHighWatermark
-
lowWatermark
-
highWatermark
-
-
Constructor Details
-
MySqlReadOnlyIncrementalSnapshotContext
public MySqlReadOnlyIncrementalSnapshotContext() -
MySqlReadOnlyIncrementalSnapshotContext
public MySqlReadOnlyIncrementalSnapshotContext(boolean useCatalogBeforeSchema)
-
-
Method Details
-
setLowWatermark
- Specified by:
setLowWatermarkin classBinlogReadOnlyIncrementalSnapshotContext<T>
-
setHighWatermark
- Specified by:
setHighWatermarkin classBinlogReadOnlyIncrementalSnapshotContext<T>
-
hasServerIdentifierChanged
public boolean hasServerIdentifierChanged()- Specified by:
hasServerIdentifierChangedin classBinlogReadOnlyIncrementalSnapshotContext<T>
-
updateWindowState
- Specified by:
updateWindowStatein classBinlogReadOnlyIncrementalSnapshotContext<T>
-
reachedHighWatermark
- Specified by:
reachedHighWatermarkin classBinlogReadOnlyIncrementalSnapshotContext<T>
-
closeWindow
public void closeWindow()- Specified by:
closeWindowin classBinlogReadOnlyIncrementalSnapshotContext<T>
-
watermarksChanged
public boolean watermarksChanged()- Specified by:
watermarksChangedin classBinlogReadOnlyIncrementalSnapshotContext<T>
-
getUuidSet
-
serverUuidChanged
private boolean serverUuidChanged() -
load
-
load
public static <U> MySqlReadOnlyIncrementalSnapshotContext<U> load(Map<String, ?> offsets, boolean useCatalogBeforeSchema)
-