Uses of Interface
io.debezium.pipeline.spi.OffsetContext
Packages that use OffsetContext
Package
Description
-
Uses of OffsetContext in io.debezium.connector.common
Classes in io.debezium.connector.common with type parameters of type OffsetContextModifier and TypeClassDescriptionclassBaseSourceTask<P extends Partition,O extends OffsetContext> Base class for Debezium's CDCSourceTaskimplementations.classOffsetReader<P extends Partition,O extends OffsetContext, L extends OffsetContext.Loader<O>> Provides access to the partition offsets stored by connectors. -
Uses of OffsetContext in io.debezium.pipeline
Classes in io.debezium.pipeline with type parameters of type OffsetContextModifier and TypeClassDescriptionclassChangeEventSourceCoordinator<P extends Partition,O extends OffsetContext> Coordinates one or moreChangeEventSources and executes them in order.Classes in io.debezium.pipeline that implement OffsetContextFields in io.debezium.pipeline declared as OffsetContextModifier and TypeFieldDescriptionprivate final OffsetContextAbstractChangeRecordEmitter.offsetContextprivate OffsetContextEventDispatcher.BufferedDataChangeEvent.offsetContextMethods in io.debezium.pipeline that return OffsetContextMethods in io.debezium.pipeline with parameters of type OffsetContextModifier and TypeMethodDescriptionvoidEventDispatcher.alwaysDispatchHeartbeatEvent(P partition, OffsetContext offset) voidEventDispatcher.BufferingSnapshotChangeRecordReceiver.changeRecord(P partition, DataCollectionSchema dataCollectionSchema, Envelope.Operation operation, Object key, org.apache.kafka.connect.data.Struct value, OffsetContext offsetContext, org.apache.kafka.connect.header.ConnectHeaders headers) voidEventDispatcher.IncrementalSnapshotChangeRecordReceiver.changeRecord(P partition, DataCollectionSchema dataCollectionSchema, Envelope.Operation operation, Object key, org.apache.kafka.connect.data.Struct value, OffsetContext offsetContext, org.apache.kafka.connect.header.ConnectHeaders headers) voidEventDispatcher.StreamingChangeRecordReceiver.changeRecord(P partition, DataCollectionSchema dataCollectionSchema, Envelope.Operation operation, Object key, org.apache.kafka.connect.data.Struct value, OffsetContext offsetContext, org.apache.kafka.connect.header.ConnectHeaders headers) voidEventDispatcher.dispatchFilteredEvent(P partition, OffsetContext offset) voidEventDispatcher.dispatchHeartbeatEvent(P partition, OffsetContext offset) voidEventDispatcher.dispatchSchemaChangeEvent(P partition, OffsetContext offsetContext, T dataCollectionId, SchemaChangeEventEmitter schemaChangeEventEmitter) voidEventDispatcher.dispatchServerHeartbeatEvent(P partition, OffsetContext offset) voidEventDispatcher.dispatchTransactionCommittedEvent(P partition, OffsetContext offset, Instant timestamp) voidEventDispatcher.dispatchTransactionStartedEvent(P partition, String transactionId, OffsetContext offset, Instant timestamp) voidChangeEventSourceCoordinator.doBlockingSnapshot(P partition, OffsetContext offsetContext, SnapshotConfiguration snapshotConfiguration) Constructors in io.debezium.pipeline with parameters of type OffsetContextModifierConstructorDescriptionAbstractChangeRecordEmitter(P partition, OffsetContext offsetContext, Clock clock, CommonConnectorConfig connectorConfig) -
Uses of OffsetContext in io.debezium.pipeline.meters
Methods in io.debezium.pipeline.meters with parameters of type OffsetContextModifier and TypeMethodDescriptionvoidCommonEventMeter.onEvent(DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value, Envelope.Operation operation) voidStreamingMeter.onEvent(DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value) -
Uses of OffsetContext in io.debezium.pipeline.metrics
Methods in io.debezium.pipeline.metrics with parameters of type OffsetContextModifier and TypeMethodDescriptionvoidDefaultStreamingChangeEventSourceMetrics.onEvent(P partition, DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value, Envelope.Operation operation) voidPipelineMetrics.onEvent(P partition, DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value, Envelope.Operation operation) -
Uses of OffsetContext in io.debezium.pipeline.notification
Classes in io.debezium.pipeline.notification with type parameters of type OffsetContextModifier and TypeClassDescriptionclassIncrementalSnapshotNotificationService<P extends Partition,O extends OffsetContext> classInitialSnapshotNotificationService<P extends Partition,O extends OffsetContext> classNotificationService<P extends Partition,O extends OffsetContext> This service can be used to send notification to available and enabled channelsMethods in io.debezium.pipeline.notification with parameters of type OffsetContextModifier and TypeMethodDescriptionprivate <T extends DataCollectionId>
NotificationIncrementalSnapshotNotificationService.buildNotificationWith(IncrementalSnapshotContext<T> incrementalSnapshotContext, SnapshotStatus type, Map<String, String> additionalData, OffsetContext offsetContext) <T extends DataCollectionId>
voidIncrementalSnapshotNotificationService.notifyAborted(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidIncrementalSnapshotNotificationService.notifyAborted(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext, List<String> dataCollectionIds) <T extends DataCollectionId>
voidInitialSnapshotNotificationService.notifyAborted(P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidIncrementalSnapshotNotificationService.notifyCompleted(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidInitialSnapshotNotificationService.notifyCompleted(P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidInitialSnapshotNotificationService.notifyCompletedTableSuccessfully(P partition, OffsetContext offsetContext, String currentCollection) <T extends DataCollectionId>
voidInitialSnapshotNotificationService.notifyCompletedTableSuccessfully(P partition, OffsetContext offsetContext, String currentCollection, long totalRowsScanned, Set<TableId> tables) <T extends DataCollectionId>
voidInitialSnapshotNotificationService.notifyCompletedTableWithError(P partition, OffsetContext offsetContext, String currentCollection) <T extends DataCollectionId>
voidIncrementalSnapshotNotificationService.notifyInProgress(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidIncrementalSnapshotNotificationService.notifyPaused(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidIncrementalSnapshotNotificationService.notifyResumed(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) voidInitialSnapshotNotificationService.notifySkipped(P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidIncrementalSnapshotNotificationService.notifyStarted(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidInitialSnapshotNotificationService.notifyStarted(P partition, OffsetContext offsetContext) <T extends DataCollectionId>
voidInitialSnapshotNotificationService.notifyTableInProgress(P partition, OffsetContext offsetContext, String currentCollection) <T extends DataCollectionId>
voidInitialSnapshotNotificationService.notifyTableInProgress(P partition, OffsetContext offsetContext, String currentCollection, Set<TableId> tables) <T extends DataCollectionId>
voidIncrementalSnapshotNotificationService.notifyTableScanCompleted(IncrementalSnapshotContext<T> incrementalSnapshotContext, P partition, OffsetContext offsetContext, long totalRowsScanned, IncrementalSnapshotNotificationService.TableScanCompletionStatus status) Method parameters in io.debezium.pipeline.notification with type arguments of type OffsetContextModifier and TypeMethodDescriptionvoidNotificationService.notify(Notification notification, Offsets<P, ? extends OffsetContext> offsets) This method permits to send a notification together with offsets. -
Uses of OffsetContext in io.debezium.pipeline.notification.channels
Classes in io.debezium.pipeline.notification.channels that implement OffsetContextMethods in io.debezium.pipeline.notification.channels with type parameters of type OffsetContextModifier and TypeMethodDescription<P extends Partition,O extends OffsetContext>
voidConnectChannel.send(Notification notification, Offsets<P, O> offsets) <P extends Partition,O extends OffsetContext>
voidSinkNotificationChannel.send(Notification notification, Offsets<P, O> offsets) -
Uses of OffsetContext in io.debezium.pipeline.signal
Classes in io.debezium.pipeline.signal with type parameters of type OffsetContextModifier and TypeClassDescriptionclassSignalProcessor<P extends Partition,O extends OffsetContext> This class permits to process signals coming from the different channels.Fields in io.debezium.pipeline.signal declared as OffsetContextConstructors in io.debezium.pipeline.signal with parameters of type OffsetContextModifierConstructorDescriptionSignalPayload(P partition, String id, String type, Document data, OffsetContext offsetContext, Map<String, Object> additionalData) -
Uses of OffsetContext in io.debezium.pipeline.signal.actions.snapshotting
Fields in io.debezium.pipeline.signal.actions.snapshotting with type parameters of type OffsetContextModifier and TypeFieldDescriptionprivate final ChangeEventSourceCoordinator<P,? extends OffsetContext> ExecuteSnapshot.changeEventSourceCoordinator -
Uses of OffsetContext in io.debezium.pipeline.source
Classes in io.debezium.pipeline.source with type parameters of type OffsetContextModifier and TypeClassDescriptionclassAbstractSnapshotChangeEventSource<P extends Partition,O extends OffsetContext> An abstract implementation ofSnapshotChangeEventSourcethat all implementations should extend to inherit common functionality.static classAbstractSnapshotChangeEventSource.SnapshotContext<P extends Partition,O extends OffsetContext> Mutable context which is populated in the course of snapshottingFields in io.debezium.pipeline.source declared as OffsetContextMethods in io.debezium.pipeline.source that return types with arguments of type OffsetContextModifier and TypeMethodDescriptionprotected Offsets<P,OffsetContext> AbstractSnapshotChangeEventSource.getOffsets(AbstractSnapshotChangeEventSource.SnapshotContext<P, O> ctx, O previousOffset, SnapshottingTask snapshottingTask) -
Uses of OffsetContext in io.debezium.pipeline.source.snapshot.incremental
Fields in io.debezium.pipeline.source.snapshot.incremental with type parameters of type OffsetContextModifier and TypeFieldDescriptionprotected final NotificationService<P,? extends OffsetContext> AbstractIncrementalSnapshotChangeEventSource.notificationServiceMethods in io.debezium.pipeline.source.snapshot.incremental with parameters of type OffsetContextModifier and TypeMethodDescriptionvoidAbstractIncrementalSnapshotChangeEventSource.closeWindow(P partition, String id, OffsetContext offsetContext) voidDeleteWindowCloser.closeWindow(Partition partition, OffsetContext offsetContext, String chunkId) voidIncrementalSnapshotChangeEventSource.closeWindow(P partition, String id, OffsetContext offsetContext) voidInsertWindowCloser.closeWindow(Partition partition, OffsetContext offsetContext, String chunkId) voidWatermarkWindowCloser.closeWindow(Partition partition, OffsetContext offsetContext, String chunkId) protected abstract voidAbstractIncrementalSnapshotChangeEventSource.emitWindowClose(P partition, OffsetContext offsetContext) Update high watermark for the incremental snapshot chunkprotected voidSignalBasedIncrementalSnapshotChangeEventSource.emitWindowClose(Partition partition, OffsetContext offsetContext) protected ChangeRecordEmitter<P>AbstractIncrementalSnapshotChangeEventSource.getChangeRecordEmitter(P partition, T dataCollectionId, OffsetContext offsetContext, Object[] row) Returns aChangeRecordEmitterproducing the change records for the given table row.voidAbstractIncrementalSnapshotChangeEventSource.init(P partition, OffsetContext offsetContext) voidIncrementalSnapshotChangeEventSource.init(P partition, OffsetContext offsetContext) private booleanAbstractIncrementalSnapshotChangeEventSource.isTableInvalid(P partition, OffsetContext offsetContext) private voidAbstractIncrementalSnapshotChangeEventSource.nextDataCollection(P partition, OffsetContext offsetContext) voidAbstractIncrementalSnapshotChangeEventSource.pauseSnapshot(P partition, OffsetContext offsetContext) voidIncrementalSnapshotChangeEventSource.pauseSnapshot(P partition, OffsetContext offsetContext) default voidIncrementalSnapshotChangeEventSource.processFilteredEvent(P partition, OffsetContext offsetContext) default voidIncrementalSnapshotChangeEventSource.processHeartbeat(P partition, OffsetContext offsetContext) voidIncrementalSnapshotChangeEventSource.processMessage(P partition, DataCollectionId dataCollectionId, Object key, OffsetContext offsetContext) voidSignalBasedIncrementalSnapshotChangeEventSource.processMessage(Partition partition, DataCollectionId dataCollectionId, Object key, OffsetContext offsetContext) voidAbstractIncrementalSnapshotChangeEventSource.processSchemaChange(P partition, OffsetContext offsetContext, DataCollectionId dataCollectionId) default voidIncrementalSnapshotChangeEventSource.processSchemaChange(P partition, OffsetContext offsetContext, DataCollectionId dataCollectionId) default voidIncrementalSnapshotChangeEventSource.processTransactionCommittedEvent(P partition, OffsetContext offsetContext) default voidIncrementalSnapshotChangeEventSource.processTransactionStartedEvent(P partition, OffsetContext offsetContext) protected voidAbstractIncrementalSnapshotChangeEventSource.readChunk(P partition, OffsetContext offsetContext) voidAbstractIncrementalSnapshotChangeEventSource.rereadChunk(P partition, OffsetContext offsetContext) voidAbstractIncrementalSnapshotChangeEventSource.resumeSnapshot(P partition, OffsetContext offsetContext) voidIncrementalSnapshotChangeEventSource.resumeSnapshot(P partition, OffsetContext offsetContext) protected voidAbstractIncrementalSnapshotChangeEventSource.sendEvent(P partition, EventDispatcher<P, T> dispatcher, OffsetContext offsetContext, Object[] row) protected voidAbstractIncrementalSnapshotChangeEventSource.sendWindowEvents(P partition, OffsetContext offsetContext) voidAbstractIncrementalSnapshotChangeEventSource.stopSnapshot(P partition, OffsetContext offsetContext, Map<String, Object> additionalData, List<String> dataCollectionIds) voidIncrementalSnapshotChangeEventSource.stopSnapshot(P partition, OffsetContext offsetContext, Map<String, Object> additionalData, List<String> dataCollectionIds) Constructor parameters in io.debezium.pipeline.source.snapshot.incremental with type arguments of type OffsetContextModifierConstructorDescriptionAbstractIncrementalSnapshotChangeEventSource(RelationalDatabaseConnectorConfig config, JdbcConnection jdbcConnection, EventDispatcher<P, T> dispatcher, DatabaseSchema<?> databaseSchema, Clock clock, SnapshotProgressListener<P> progressListener, DataChangeEventListener<P> dataChangeEventListener, NotificationService<P, ? extends OffsetContext> notificationService) SignalBasedIncrementalSnapshotChangeEventSource(RelationalDatabaseConnectorConfig config, JdbcConnection jdbcConnection, EventDispatcher<P, T> dispatcher, DatabaseSchema<?> databaseSchema, Clock clock, SnapshotProgressListener<P> progressListener, DataChangeEventListener<P> dataChangeEventListener, NotificationService<P, ? extends OffsetContext> notificationService) -
Uses of OffsetContext in io.debezium.pipeline.source.spi
Classes in io.debezium.pipeline.source.spi with type parameters of type OffsetContextModifier and TypeInterfaceDescriptioninterfaceChangeEventSourceFactory<P extends Partition,O extends OffsetContext> A factory for creatingChangeEventSources specific to one database.interfaceSnapshotChangeEventSource<P extends Partition,O extends OffsetContext> A change event source that emits events for taking a consistent snapshot of the captured tables, which may include schema and data information.interfaceStreamingChangeEventSource<P extends Partition,O extends OffsetContext> A change event source that emits events from a DB log, such as MySQL's binlog or similar.Methods in io.debezium.pipeline.source.spi with parameters of type OffsetContextModifier and TypeMethodDescriptionEventMetadataProvider.getEventSourcePosition(DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value) EventMetadataProvider.getEventTimestamp(DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value) EventMetadataProvider.getTransactionId(DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value) voidDataChangeEventListener.onEvent(P partition, DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value, Envelope.Operation operation) Invoked if an event is processed for a captured table.default StringEventMetadataProvider.toSummaryString(DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value) -
Uses of OffsetContext in io.debezium.pipeline.spi
Classes in io.debezium.pipeline.spi with type parameters of type OffsetContextModifier and TypeInterfaceDescriptionstatic interfaceOffsetContext.Loader<O extends OffsetContext>Implementations load a connector-specific offset context based on the offset values stored in Kafka.final classOffsets<P extends Partition,O extends OffsetContext> Keeps track the source partitions to be processed by the connector task and their respective offsets.classSnapshotResult<O extends OffsetContext>Fields in io.debezium.pipeline.spi declared as OffsetContextMethods in io.debezium.pipeline.spi with type parameters of type OffsetContextModifier and TypeMethodDescriptionstatic <O extends OffsetContext>
SnapshotResult<O>SnapshotResult.aborted()static <O extends OffsetContext>
SnapshotResult<O>SnapshotResult.completed(O offset) static <P extends Partition,O extends OffsetContext>
Offsets<P,O> static <P extends Partition,O extends OffsetContext>
Offsets<P,O> Offsets.of(P partition, O position) static <O extends OffsetContext>
SnapshotResult<O>SnapshotResult.skipped(O offset) Methods in io.debezium.pipeline.spi that return OffsetContextModifier and TypeMethodDescriptionChangeRecordEmitter.getOffset()Returns the offset of the change record(s) emitted.Methods in io.debezium.pipeline.spi with parameters of type OffsetContextModifier and TypeMethodDescriptionvoidChangeRecordEmitter.Receiver.changeRecord(P partition, DataCollectionSchema schema, Envelope.Operation operation, Object key, org.apache.kafka.connect.data.Struct value, OffsetContext offset, org.apache.kafka.connect.header.ConnectHeaders headers) -
Uses of OffsetContext in io.debezium.pipeline.txmetadata
Methods in io.debezium.pipeline.txmetadata with parameters of type OffsetContextModifier and TypeMethodDescriptionprivate voidTransactionMonitor.beginTransaction(Partition partition, OffsetContext offsetContext, Instant timestamp) voidTransactionMonitor.dataEvent(Partition partition, DataCollectionId source, OffsetContext offset, Object key, org.apache.kafka.connect.data.Struct value) private voidTransactionMonitor.endTransaction(Partition partition, OffsetContext offsetContext, Instant timestamp) protected org.apache.kafka.connect.data.StructTransactionMonitor.prepareTxBeginValue(OffsetContext offsetContext, Instant timestamp) protected org.apache.kafka.connect.data.StructTransactionMonitor.prepareTxEndValue(OffsetContext offsetContext, Instant timestamp) protected org.apache.kafka.connect.data.StructTransactionMonitor.prepareTxKey(OffsetContext offsetContext) protected org.apache.kafka.connect.data.StructTransactionMonitor.prepareTxStruct(OffsetContext offsetContext, long dataCollectionEventOrder, org.apache.kafka.connect.data.Struct value) voidTransactionMonitor.transactionComittedEvent(Partition partition, OffsetContext offset, Instant timestamp) private voidTransactionMonitor.transactionEvent(OffsetContext offsetContext, DataCollectionId source, org.apache.kafka.connect.data.Struct value) voidTransactionMonitor.transactionStartedEvent(Partition partition, String transactionId, OffsetContext offset, Instant timestamp) -
Uses of OffsetContext in io.debezium.relational
Classes in io.debezium.relational with type parameters of type OffsetContextModifier and TypeClassDescriptionclassRelationalSnapshotChangeEventSource<P extends Partition,O extends OffsetContext> Base class forSnapshotChangeEventSourcefor relational databases with or without a schema history.static classRelationalSnapshotChangeEventSource.RelationalSnapshotContext<P extends Partition,O extends OffsetContext> Mutable context which is populated in the course of snapshotting.Methods in io.debezium.relational with parameters of type OffsetContextModifier and TypeMethodDescriptionprivate voidRelationalSnapshotChangeEventSource.setSnapshotMarker(OffsetContext offset, boolean firstTable, boolean lastTable, boolean firstRecordInTable, boolean lastRecordInTable) Constructors in io.debezium.relational with parameters of type OffsetContextModifierConstructorDescriptionRelationalChangeRecordEmitter(P partition, OffsetContext offsetContext, Clock clock, RelationalDatabaseConnectorConfig connectorConfig) SnapshotChangeRecordEmitter(P partition, OffsetContext offset, Object[] row, Clock clock, RelationalDatabaseConnectorConfig connectorConfig) -
Uses of OffsetContext in io.debezium.schema
Methods in io.debezium.schema with parameters of type OffsetContextModifier and TypeMethodDescriptionstatic SchemaChangeEventSchemaChangeEvent.of(SchemaChangeEvent.SchemaChangeEventType type, Partition partition, OffsetContext offsetContext, String databaseName, String schemaName, String ddl, Table table, boolean isFromSnapshot) Create a schema change event for any event type that does not involve a table rename.static SchemaChangeEventSchemaChangeEvent.ofAlter(Partition partition, OffsetContext offsetContext, String databaseName, String schemaName, String ddl, Table table) Create a schema change event for aALTER TABLEevent.static SchemaChangeEventSchemaChangeEvent.ofCreate(Partition partition, OffsetContext offsetContext, String databaseName, String schemaName, String ddl, Table table, boolean isFromSnapshot) Create a schema change event for aCREATE TABLEstatement with DDL.static SchemaChangeEventSchemaChangeEvent.ofDatabase(Partition partition, OffsetContext offsetContext, String databaseName, String ddl, boolean isFromSnapshot) Create a schema change event for a database-specific DDL operation.static SchemaChangeEventSchemaChangeEvent.ofDrop(Partition partition, OffsetContext offsetContext, String databaseName, String schemaName, String ddl, Table table) Create a schema change event for aDROP TABLEevent.static SchemaChangeEventSchemaChangeEvent.ofRename(Partition partition, OffsetContext offsetContext, String databaseName, String schemaName, String ddl, Table table, TableId previousTableId) Create a schema change event for aALTER TABLE RENAMEevent.static SchemaChangeEventSchemaChangeEvent.ofSnapshotCreate(Partition partition, OffsetContext offsetContext, String databaseName, Table table) Create a schema change event for aCREATE TABLEstatement without DDL from snapshot phase.static SchemaChangeEventSchemaChangeEvent.ofTruncate(Partition partition, OffsetContext offsetContext, String databaseName, String schemaName, String ddl, Table table) Create a schema change event for aTRUNCATE TABLEevent.default voidHistorizedDatabaseSchema.recover(Partition partition, OffsetContext offset)