public class SqlServerSnapshotChangeEventSource
extends io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource
| Modifier and Type | Class and Description |
|---|---|
private static class |
SqlServerSnapshotChangeEventSource.SqlServerSnapshotContext
Mutable context which is populated in the course of snapshotting.
|
| Modifier and Type | Field and Description |
|---|---|
private SqlServerConnectorConfig |
connectorConfig |
private SqlServerConnection |
jdbcConnection |
private static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
SqlServerSnapshotChangeEventSource(SqlServerConnectorConfig connectorConfig,
SqlServerOffsetContext previousOffset,
SqlServerConnection jdbcConnection,
SqlServerDatabaseSchema schema,
io.debezium.pipeline.EventDispatcher<io.debezium.relational.TableId> dispatcher,
io.debezium.util.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
complete() |
protected void |
determineSnapshotOffset(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext ctx) |
protected Set<io.debezium.relational.TableId> |
getAllTableIds(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext ctx) |
protected io.debezium.pipeline.spi.ChangeRecordEmitter |
getChangeRecordEmitter(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext,
Object[] row) |
protected io.debezium.schema.SchemaChangeEvent |
getCreateTableEvent(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext,
io.debezium.relational.Table table) |
protected String |
getSnapshotSelect(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext,
io.debezium.relational.TableId tableId) |
protected io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshottingTask |
getSnapshottingTask(io.debezium.pipeline.spi.OffsetContext previousOffset) |
protected void |
lockTablesForSchemaSnapshot(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext sourceContext,
io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext) |
protected io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext |
prepare(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext context) |
protected void |
readTableStructure(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext sourceContext,
io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext) |
protected void |
releaseSchemaSnapshotLocks(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext) |
private static final org.slf4j.Logger LOGGER
private final SqlServerConnectorConfig connectorConfig
private final SqlServerConnection jdbcConnection
public SqlServerSnapshotChangeEventSource(SqlServerConnectorConfig connectorConfig, SqlServerOffsetContext previousOffset, SqlServerConnection jdbcConnection, SqlServerDatabaseSchema schema, io.debezium.pipeline.EventDispatcher<io.debezium.relational.TableId> dispatcher, io.debezium.util.Clock clock)
protected io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshottingTask getSnapshottingTask(io.debezium.pipeline.spi.OffsetContext previousOffset)
getSnapshottingTask in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceprotected io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext prepare(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext context)
throws Exception
prepare in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceExceptionprotected Set<io.debezium.relational.TableId> getAllTableIds(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext ctx) throws Exception
getAllTableIds in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceExceptionprotected void lockTablesForSchemaSnapshot(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext sourceContext,
io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext)
throws SQLException,
InterruptedException
lockTablesForSchemaSnapshot in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceSQLExceptionInterruptedExceptionprotected void releaseSchemaSnapshotLocks(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext)
throws SQLException
releaseSchemaSnapshotLocks in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceSQLExceptionprotected void determineSnapshotOffset(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext ctx)
throws Exception
determineSnapshotOffset in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceExceptionprotected void readTableStructure(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext sourceContext,
io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext)
throws SQLException,
InterruptedException
readTableStructure in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceSQLExceptionInterruptedExceptionprotected io.debezium.schema.SchemaChangeEvent getCreateTableEvent(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext,
io.debezium.relational.Table table)
throws SQLException
getCreateTableEvent in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceSQLExceptionprotected void complete()
complete in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceprotected String getSnapshotSelect(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext, io.debezium.relational.TableId tableId)
getSnapshotSelect in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceprotected io.debezium.pipeline.spi.ChangeRecordEmitter getChangeRecordEmitter(io.debezium.relational.HistorizedRelationalSnapshotChangeEventSource.SnapshotContext snapshotContext,
Object[] row)
getChangeRecordEmitter in class io.debezium.relational.HistorizedRelationalSnapshotChangeEventSourceCopyright © 2018 JBoss by Red Hat. All rights reserved.