Class MySqlReadOnlyIncrementalSnapshotContext<T>
java.lang.Object
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotContext<T>
io.debezium.connector.mysql.strategy.mysql.MySqlReadOnlyIncrementalSnapshotContext<T>
- All Implemented Interfaces:
IncrementalSnapshotContext<T>
public class MySqlReadOnlyIncrementalSnapshotContext<T>
extends AbstractIncrementalSnapshotContext<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MySqlGtidSetprivate static final org.slf4j.Loggerprivate MySqlGtidSetprivate MySqlGtidSetprivate MySqlGtidSetstatic final Stringprivate LongFields 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 TypeMethodDescriptionvoidgetCurrentGtid(OffsetContext offsetContext) private MySqlGtidSet.UUIDSetgetUuidSet(String serverId) protected static <U> IncrementalSnapshotContext<U>init(MySqlReadOnlyIncrementalSnapshotContext<U> context, Map<String, ?> offsets) static <U> MySqlReadOnlyIncrementalSnapshotContext<U>static <U> MySqlReadOnlyIncrementalSnapshotContext<U>booleanreachedHighWatermark(String currentGtid) booleanvoidsetHighWatermark(MySqlGtidSet highWatermark) voidsetLowWatermark(MySqlGtidSet lowWatermark) voidsetSignalOffset(Long signalOffset) booleanupdateWindowState(OffsetContext offsetContext) booleanMethods 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
-
signalOffset
-
SIGNAL_OFFSET
- See Also:
-
-
Constructor Details
-
MySqlReadOnlyIncrementalSnapshotContext
public MySqlReadOnlyIncrementalSnapshotContext() -
MySqlReadOnlyIncrementalSnapshotContext
public MySqlReadOnlyIncrementalSnapshotContext(boolean useCatalogBeforeSchema)
-
-
Method Details
-
init
protected static <U> IncrementalSnapshotContext<U> init(MySqlReadOnlyIncrementalSnapshotContext<U> context, Map<String, ?> offsets) -
load
-
load
public static <U> MySqlReadOnlyIncrementalSnapshotContext<U> load(Map<String, ?> offsets, boolean useCatalogBeforeSchema) -
setLowWatermark
-
setHighWatermark
-
updateWindowState
-
reachedHighWatermark
-
getCurrentGtid
-
closeWindow
public void closeWindow() -
getUuidSet
-
serverUuidChanged
public boolean serverUuidChanged() -
getSignalOffset
-
setSignalOffset
-
store
- Specified by:
storein interfaceIncrementalSnapshotContext<T>- Overrides:
storein classAbstractIncrementalSnapshotContext<T>
-
watermarksChanged
public boolean watermarksChanged()
-