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.dispatchServerHeartbeatEvent(P partition, OffsetContext offset) voidEventDispatcher.dispatchTransactionCommittedEvent(P partition, OffsetContext offset, Instant timestamp) voidEventDispatcher.dispatchTransactionStartedEvent(P partition, String transactionId, OffsetContext offset, Instant timestamp) Constructors in io.debezium.pipeline with parameters of type OffsetContextModifierConstructorDescriptionAbstractChangeRecordEmitter(P partition, OffsetContext offsetContext, Clock clock) -
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.signal
Fields in io.debezium.pipeline.signal declared as OffsetContextMethods in io.debezium.pipeline.signal with parameters of type OffsetContextModifier and TypeMethodDescriptionbooleanSignal.process(P partition, String id, String type, String data, OffsetContext offset, org.apache.kafka.connect.data.Struct source) booleanSignal.process(P partition, org.apache.kafka.connect.data.Struct value, OffsetContext offset) Constructors in io.debezium.pipeline.signal with parameters of type OffsetContext -
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 OffsetContext -
Uses of OffsetContext in io.debezium.pipeline.source.snapshot.incremental
Methods in io.debezium.pipeline.source.snapshot.incremental with parameters of type OffsetContextModifier and TypeMethodDescriptionvoidAbstractIncrementalSnapshotChangeEventSource.addDataCollectionNamesToSnapshot(P partition, List<String> dataCollectionIds, Optional<String> additionalCondition, Optional<String> surrogateKey, OffsetContext offsetContext) voidIncrementalSnapshotChangeEventSource.addDataCollectionNamesToSnapshot(P partition, List<String> dataCollectionIds, Optional<String> additionalCondition, Optional<String> surrogateKey, OffsetContext offsetContext) voidAbstractIncrementalSnapshotChangeEventSource.closeWindow(P partition, String id, OffsetContext offsetContext) voidIncrementalSnapshotChangeEventSource.closeWindow(P partition, String id, 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) 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) default voidIncrementalSnapshotChangeEventSource.processTransactionCommittedEvent(P partition, OffsetContext offsetContext) default voidIncrementalSnapshotChangeEventSource.processTransactionStartedEvent(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, List<String> dataCollectionIds, OffsetContext offsetContext) voidIncrementalSnapshotChangeEventSource.stopSnapshot(P partition, List<String> dataCollectionIds, OffsetContext offsetContext) -
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) SnapshotChangeRecordEmitter(P partition, OffsetContext offset, Object[] row, Clock clock) -
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.default voidHistorizedDatabaseSchema.recover(Partition partition, OffsetContext offset)