Package io.debezium.connector.postgresql
Class PostgresSignalBasedIncrementalSnapshotChangeEventSource
java.lang.Object
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource<P,T>
io.debezium.pipeline.source.snapshot.incremental.SignalBasedIncrementalSnapshotChangeEventSource<PostgresPartition,TableId>
io.debezium.connector.postgresql.PostgresSignalBasedIncrementalSnapshotChangeEventSource
- All Implemented Interfaces:
IncrementalSnapshotChangeEventSource<PostgresPartition,TableId>
public class PostgresSignalBasedIncrementalSnapshotChangeEventSource
extends SignalBasedIncrementalSnapshotChangeEventSource<PostgresPartition,TableId>
Custom PostgreSQL implementation of the
SignalBasedIncrementalSnapshotChangeEventSource implementation
which performs an explicit schema refresh of a table prior to the incremental snapshot starting.- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PostgresConnectionprivate static final org.slf4j.Loggerprivate final PostgresSchemaFields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource
chunkQueryBuilder, connectorConfig, context, dispatcher, notificationService, window -
Constructor Summary
ConstructorsConstructorDescriptionPostgresSignalBasedIncrementalSnapshotChangeEventSource(RelationalDatabaseConnectorConfig config, JdbcConnection jdbcConnection, EventDispatcher<PostgresPartition, TableId> dispatcher, DatabaseSchema<?> databaseSchema, Clock clock, SnapshotProgressListener<PostgresPartition> progressListener, DataChangeEventListener<PostgresPartition> dataChangeEventListener, NotificationService<PostgresPartition, ? extends OffsetContext> notificationService) -
Method Summary
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.SignalBasedIncrementalSnapshotChangeEventSource
emitWindowClose, emitWindowOpen, processMessageMethods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource
addDataCollectionNamesToSnapshot, closeWindow, deduplicateWindow, getChangeRecordEmitter, getSignalTableName, init, pauseSnapshot, postIncrementalSnapshotCompleted, postReadChunk, preReadChunk, processSchemaChange, readChunk, rereadChunk, resumeSnapshot, sendEvent, sendWindowEvents, setContext, stopSnapshotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotChangeEventSource
processFilteredEvent, processHeartbeat, processTransactionCommittedEvent, processTransactionStartedEvent
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
jdbcConnection
-
schema
-
-
Constructor Details
-
PostgresSignalBasedIncrementalSnapshotChangeEventSource
public PostgresSignalBasedIncrementalSnapshotChangeEventSource(RelationalDatabaseConnectorConfig config, JdbcConnection jdbcConnection, EventDispatcher<PostgresPartition, TableId> dispatcher, DatabaseSchema<?> databaseSchema, Clock clock, SnapshotProgressListener<PostgresPartition> progressListener, DataChangeEventListener<PostgresPartition> dataChangeEventListener, NotificationService<PostgresPartition, ? extends OffsetContext> notificationService)
-
-
Method Details
-
refreshTableSchema
- Overrides:
refreshTableSchemain classAbstractIncrementalSnapshotChangeEventSource<PostgresPartition,TableId> - Throws:
SQLException
-