| Package | Description |
|---|---|
| io.debezium.relational |
| Modifier and Type | Method and Description |
|---|---|
protected abstract RelationalSnapshotChangeEventSource.SnapshotContext |
RelationalSnapshotChangeEventSource.prepare(ChangeEventSource.ChangeEventSourceContext changeEventSourceContext)
Prepares the taking of a snapshot and returns an initial
RelationalSnapshotChangeEventSource.SnapshotContext. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
RelationalSnapshotChangeEventSource.complete(RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext)
Completes the snapshot, doing any required clean-up (resource disposal etc.).
|
protected void |
RelationalSnapshotChangeEventSource.connectionCreated(RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext)
Executes steps which have to be taken just after the database connection is created.
|
private void |
RelationalSnapshotChangeEventSource.createDataEvents(ChangeEventSource.ChangeEventSourceContext sourceContext,
RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext) |
private void |
RelationalSnapshotChangeEventSource.createDataEventsForTable(ChangeEventSource.ChangeEventSourceContext sourceContext,
RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext,
EventDispatcher.SnapshotReceiver snapshotReceiver,
Table table)
Dispatches the data change events for the records of a single table.
|
private void |
RelationalSnapshotChangeEventSource.createSchemaChangeEventsForTables(ChangeEventSource.ChangeEventSourceContext sourceContext,
RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext) |
private void |
RelationalSnapshotChangeEventSource.determineCapturedTables(RelationalSnapshotChangeEventSource.SnapshotContext ctx) |
protected abstract void |
RelationalSnapshotChangeEventSource.determineSnapshotOffset(RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext)
Determines the current offset (MySQL binlog position, Oracle SCN etc.), storing it into the passed context
object.
|
private Optional<String> |
RelationalSnapshotChangeEventSource.determineSnapshotSelect(RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext,
TableId tableId)
Returns a valid query string for the specified table, either given by the user via snapshot select overrides or
defaulting to a statement provided by the DB-specific change event source.
|
protected abstract Set<TableId> |
RelationalSnapshotChangeEventSource.getAllTableIds(RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext)
Returns all candidate tables; the current filter configuration will be applied to the result set, resulting in
the effective set of captured tables.
|
protected ChangeRecordEmitter |
RelationalSnapshotChangeEventSource.getChangeRecordEmitter(RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext,
TableId tableId,
Object[] row)
Returns a
ChangeRecordEmitter producing the change records for the given table row. |
protected abstract SchemaChangeEvent |
RelationalSnapshotChangeEventSource.getCreateTableEvent(RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext,
Table table)
Creates a
SchemaChangeEvent representing the creation of the given table. |
protected abstract Optional<String> |
RelationalSnapshotChangeEventSource.getSnapshotSelect(RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext,
TableId tableId)
Returns the SELECT statement to be used for scanning the given table or empty value if
the table will be streamed from but not snapshotted
|
protected abstract void |
RelationalSnapshotChangeEventSource.lockTablesForSchemaSnapshot(ChangeEventSource.ChangeEventSourceContext sourceContext,
RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext)
Locks all tables to be captured, so that no concurrent schema changes can be applied to them.
|
protected abstract void |
RelationalSnapshotChangeEventSource.readTableStructure(ChangeEventSource.ChangeEventSourceContext sourceContext,
RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext)
Reads the structure of all the captured tables, writing it to
tables. |
protected abstract void |
RelationalSnapshotChangeEventSource.releaseSchemaSnapshotLocks(RelationalSnapshotChangeEventSource.SnapshotContext snapshotContext)
Releases all locks established in order to create a consistent schema snapshot.
|
Copyright © 2020 JBoss by Red Hat. All rights reserved.