Package io.debezium.connector.postgresql
Class PostgresSignalBasedIncrementalSnapshotChangeEventSource
- java.lang.Object
-
- io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource<T>
-
- io.debezium.pipeline.source.snapshot.incremental.SignalBasedIncrementalSnapshotChangeEventSource<TableId>
-
- io.debezium.connector.postgresql.PostgresSignalBasedIncrementalSnapshotChangeEventSource
-
- All Implemented Interfaces:
IncrementalSnapshotChangeEventSource<TableId>
public class PostgresSignalBasedIncrementalSnapshotChangeEventSource extends SignalBasedIncrementalSnapshotChangeEventSource<TableId>
Custom PostgreSQL implementation of theSignalBasedIncrementalSnapshotChangeEventSourceimplementation which performs an explicit schema refresh of a table prior to the incremental snapshot starting.- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description private PostgresConnectionjdbcConnectionprivate static org.slf4j.LoggerLOGGERprivate PostgresSchemaschema-
Fields inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource
context, dispatcher, window
-
-
Constructor Summary
Constructors Constructor Description PostgresSignalBasedIncrementalSnapshotChangeEventSource(RelationalDatabaseConnectorConfig config, JdbcConnection jdbcConnection, EventDispatcher<TableId> dispatcher, DatabaseSchema<?> databaseSchema, Clock clock, SnapshotProgressListener progressListener, DataChangeEventListener dataChangeEventListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TablerefreshTableSchema(Table table)-
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.SignalBasedIncrementalSnapshotChangeEventSource
emitWindowClose, emitWindowOpen, processMessage
-
Methods inherited from class io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotChangeEventSource
addDataCollectionNamesToSnapshot, addKeyColumnsToCondition, buildChunkQuery, buildMaxPrimaryKeyQuery, closeWindow, deduplicateWindow, getChangeRecordEmitter, getSignalTableName, init, postIncrementalSnapshotCompleted, postReadChunk, preReadChunk, readChunk, readTableChunkStatement, sendEvent, sendWindowEvents, setContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotChangeEventSource
processFilteredEvent, processHeartbeat, processTransactionCommittedEvent, processTransactionStartedEvent
-
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
jdbcConnection
private final PostgresConnection jdbcConnection
-
schema
private final PostgresSchema schema
-
-
Constructor Detail
-
PostgresSignalBasedIncrementalSnapshotChangeEventSource
public PostgresSignalBasedIncrementalSnapshotChangeEventSource(RelationalDatabaseConnectorConfig config, JdbcConnection jdbcConnection, EventDispatcher<TableId> dispatcher, DatabaseSchema<?> databaseSchema, Clock clock, SnapshotProgressListener progressListener, DataChangeEventListener dataChangeEventListener)
-
-
Method Detail
-
refreshTableSchema
protected Table refreshTableSchema(Table table) throws SQLException
- Overrides:
refreshTableSchemain classAbstractIncrementalSnapshotChangeEventSource<TableId>- Throws:
SQLException
-
-