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
Fields Modifier and Type Field Description private Queue<ExecuteSnapshotKafkaSignal>
executeSnapshotSignals
private GtidSet
highWatermark
private static org.slf4j.Logger
LOGGER
private GtidSet
lowWatermark
private GtidSet
previousHighWatermark
private GtidSet
previousLowWatermark
static String
SIGNAL_OFFSET
private Long
signalOffset
-
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 Constructor Description MySqlReadOnlyIncrementalSnapshotContext()
MySqlReadOnlyIncrementalSnapshotContext(boolean useCatalogBeforeSchema)
-
Method Summary
-
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 Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
previousLowWatermark
private GtidSet previousLowWatermark
-
previousHighWatermark
private GtidSet previousHighWatermark
-
lowWatermark
private GtidSet lowWatermark
-
highWatermark
private GtidSet highWatermark
-
signalOffset
private Long signalOffset
-
executeSnapshotSignals
private final Queue<ExecuteSnapshotKafkaSignal> executeSnapshotSignals
-
SIGNAL_OFFSET
public static final String SIGNAL_OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
protected static <U> IncrementalSnapshotContext<U> init(MySqlReadOnlyIncrementalSnapshotContext<U> context, Map<String,?> offsets)
-
load
public static <U> MySqlReadOnlyIncrementalSnapshotContext<U> load(Map<String,?> offsets)
-
load
public static <U> MySqlReadOnlyIncrementalSnapshotContext<U> load(Map<String,?> offsets, boolean useCatalogBeforeSchema)
-
setLowWatermark
public void setLowWatermark(GtidSet lowWatermark)
-
setHighWatermark
public void setHighWatermark(GtidSet highWatermark)
-
updateWindowState
public boolean updateWindowState(OffsetContext offsetContext)
-
reachedHighWatermark
public boolean reachedHighWatermark(String currentGtid)
-
getCurrentGtid
public String getCurrentGtid(OffsetContext offsetContext)
-
closeWindow
public void closeWindow()
-
getUuidSet
private GtidSet.UUIDSet getUuidSet(String serverId)
-
serverUuidChanged
public boolean serverUuidChanged()
-
getSignalOffset
public Long getSignalOffset()
-
setSignalOffset
public void setSignalOffset(Long signalOffset)
-
store
public Map<String,Object> store(Map<String,Object> offset)
- Specified by:
store
in interfaceIncrementalSnapshotContext<T>
- Overrides:
store
in classAbstractIncrementalSnapshotContext<T>
-
enqueueDataCollectionsToSnapshot
public void enqueueDataCollectionsToSnapshot(List<String> dataCollectionIds, long signalOffset)
-
getExecuteSnapshotSignals
public ExecuteSnapshotKafkaSignal getExecuteSnapshotSignals()
-
hasExecuteSnapshotSignals
public boolean hasExecuteSnapshotSignals()
-
watermarksChanged
public boolean watermarksChanged()
-
-