Package io.debezium.connector.mysql
Class MySqlReadOnlyIncrementalSnapshotContext<T>
java.lang.Object
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotContext<T>
io.debezium.connector.mysql.MySqlReadOnlyIncrementalSnapshotContext<T>
- All Implemented Interfaces:
IncrementalSnapshotContext<T>
@NotThreadSafe
public class MySqlReadOnlyIncrementalSnapshotContext<T>
extends AbstractIncrementalSnapshotContext<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Queue<ExecuteSnapshotKafkaSignal>
private GtidSet
private static final org.slf4j.Logger
private GtidSet
private GtidSet
private GtidSet
static final String
private Long
Fields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotContext
DATA_COLLECTIONS_TO_SNAPSHOT_KEY, EVENT_PRIMARY_KEY, INCREMENTAL_SNAPSHOT_KEY, TABLE_MAXIMUM_KEY, windowOpened
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
enqueueDataCollectionsToSnapshot
(List<String> dataCollectionIds, long signalOffset) getCurrentGtid
(OffsetContext offsetContext) private GtidSet.UUIDSet
getUuidSet
(String serverId) boolean
protected static <U> IncrementalSnapshotContext<U>
init
(MySqlReadOnlyIncrementalSnapshotContext<U> context, Map<String, ?> offsets) static <U> MySqlReadOnlyIncrementalSnapshotContext<U>
static <U> MySqlReadOnlyIncrementalSnapshotContext<U>
boolean
reachedHighWatermark
(String currentGtid) boolean
void
setHighWatermark
(GtidSet highWatermark) void
setLowWatermark
(GtidSet lowWatermark) void
setSignalOffset
(Long signalOffset) boolean
updateWindowState
(OffsetContext offsetContext) boolean
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotContext
addDataCollectionNamesToSnapshot, chunkEndPosititon, closeWindow, currentChunkId, currentDataCollectionId, dataCollectionsToBeSnapshottedCount, deduplicationNeeded, getSchema, init, isNonInitialChunk, isSchemaVerificationPassed, maximumKey, maximumKey, nextChunkPosition, nextDataCollection, openWindow, revertChunk, sendEvent, setSchema, setSchemaVerificationPassed, snapshotRunning, startNewChunk, toString
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
previousLowWatermark
-
previousHighWatermark
-
lowWatermark
-
highWatermark
-
signalOffset
-
executeSnapshotSignals
-
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:
store
in interfaceIncrementalSnapshotContext<T>
- Overrides:
store
in classAbstractIncrementalSnapshotContext<T>
-
enqueueDataCollectionsToSnapshot
-
getExecuteSnapshotSignals
-
hasExecuteSnapshotSignals
public boolean hasExecuteSnapshotSignals() -
watermarksChanged
public boolean watermarksChanged()
-