protected void |
RelationalSnapshotChangeEventSource.connectionCreated(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext) |
Executes steps which have to be taken just after the database connection is created.
|
private void |
RelationalSnapshotChangeEventSource.createDataEvents(ChangeEventSource.ChangeEventSourceContext sourceContext,
RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext) |
|
private void |
RelationalSnapshotChangeEventSource.createDataEventsForTable(ChangeEventSource.ChangeEventSourceContext sourceContext,
RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext,
EventDispatcher.SnapshotReceiver snapshotReceiver,
Table table,
int tableOrder,
int tableCount) |
Dispatches the data change events for the records of a single table.
|
protected void |
RelationalSnapshotChangeEventSource.createSchemaChangeEventsForTables(ChangeEventSource.ChangeEventSourceContext sourceContext,
RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext,
AbstractSnapshotChangeEventSource.SnapshottingTask snapshottingTask) |
|
private void |
RelationalSnapshotChangeEventSource.determineCapturedTables(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> ctx) |
|
protected abstract void |
RelationalSnapshotChangeEventSource.determineSnapshotOffset(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext,
O previousOffset) |
Determines the current offset (MySQL binlog position, Oracle SCN etc.), storing it into the passed context
object.
|
private Optional<String> |
RelationalSnapshotChangeEventSource.determineSnapshotSelect(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> 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 String |
RelationalSnapshotChangeEventSource.enhanceOverriddenSelect(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext,
String overriddenSelect,
TableId tableId) |
This method is overridden for Oracle to implement "as of SCN" predicate
|
protected abstract Set<TableId> |
RelationalSnapshotChangeEventSource.getAllTableIds(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> 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 abstract SchemaChangeEvent |
RelationalSnapshotChangeEventSource.getCreateTableEvent(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext,
Table table) |
|
protected abstract Optional<String> |
RelationalSnapshotChangeEventSource.getSnapshotSelect(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext,
TableId tableId,
List<String> columns) |
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 void |
RelationalSnapshotChangeEventSource.lastSnapshotRecord(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext) |
|
protected abstract void |
RelationalSnapshotChangeEventSource.lockTablesForSchemaSnapshot(ChangeEventSource.ChangeEventSourceContext sourceContext,
RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> 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.RelationalSnapshotContext<P,O> snapshotContext,
O offsetContext) |
Reads the structure of all the captured tables, writing it to tables.
|
protected void |
RelationalSnapshotChangeEventSource.releaseDataSnapshotLocks(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext) |
Releases all locks established in order to create a consistent data snapshot.
|
protected abstract void |
RelationalSnapshotChangeEventSource.releaseSchemaSnapshotLocks(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext) |
Releases all locks established in order to create a consistent schema snapshot.
|
protected void |
RelationalSnapshotChangeEventSource.tryStartingSnapshot(RelationalSnapshotChangeEventSource.RelationalSnapshotContext<P,O> snapshotContext) |
|