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 MySqlGtidSet
private static final org.slf4j.Logger
private MySqlGtidSet
private MySqlGtidSet
private MySqlGtidSet
Fields inherited from class io.debezium.connector.binlog.BinlogReadOnlyIncrementalSnapshotContext
SIGNAL_OFFSET
Fields 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 TypeMethodDescriptionvoid
private MySqlGtidSet.UUIDSet
getUuidSet
(String serverId) boolean
static <U> MySqlReadOnlyIncrementalSnapshotContext
<U> static <U> MySqlReadOnlyIncrementalSnapshotContext
<U> boolean
reachedHighWatermark
(String currentGtid) private boolean
void
setHighWatermark
(GtidSet highWatermark) void
setLowWatermark
(GtidSet lowWatermark) boolean
updateWindowState
(OffsetContext offsetContext) boolean
Methods inherited from class io.debezium.connector.binlog.BinlogReadOnlyIncrementalSnapshotContext
getCurrentGtid, getSignalOffset, init, setSignalOffset, store
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotContext
addDataCollectionNamesToSnapshot, chunkEndPosititon, closeWindow, currentChunkId, currentDataCollectionId, dataCollectionsToBeSnapshottedCount, deduplicationNeeded, getCorrelationId, getDataCollections, getDataCollectionsToStop, getSchema, init, isNonInitialChunk, isSchemaVerificationPassed, isSnapshotPaused, maximumKey, maximumKey, nextChunkPosition, nextDataCollection, openWindow, pauseSnapshot, removeDataCollectionFromSnapshot, requestSnapshotStop, resumeSnapshot, revertChunk, sendEvent, setSchema, setSchemaVerificationPassed, snapshotRunning, startNewChunk, 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:
setLowWatermark
in classBinlogReadOnlyIncrementalSnapshotContext<T>
-
setHighWatermark
- Specified by:
setHighWatermark
in classBinlogReadOnlyIncrementalSnapshotContext<T>
-
hasServerIdentifierChanged
public boolean hasServerIdentifierChanged()- Specified by:
hasServerIdentifierChanged
in classBinlogReadOnlyIncrementalSnapshotContext<T>
-
updateWindowState
- Specified by:
updateWindowState
in classBinlogReadOnlyIncrementalSnapshotContext<T>
-
reachedHighWatermark
- Specified by:
reachedHighWatermark
in classBinlogReadOnlyIncrementalSnapshotContext<T>
-
closeWindow
public void closeWindow()- Specified by:
closeWindow
in classBinlogReadOnlyIncrementalSnapshotContext<T>
-
watermarksChanged
public boolean watermarksChanged()- Specified by:
watermarksChanged
in classBinlogReadOnlyIncrementalSnapshotContext<T>
-
getUuidSet
-
serverUuidChanged
private boolean serverUuidChanged() -
load
-
load
public static <U> MySqlReadOnlyIncrementalSnapshotContext<U> load(Map<String, ?> offsets, boolean useCatalogBeforeSchema)
-