public abstract class HistorizedRelationalDatabaseSchema extends RelationalDatabaseSchema implements HistorizedDatabaseSchema<TableId>
DatabaseSchema or a relational database which has a schema history, that can be recovered to the current
state when restarting a connector.| Modifier and Type | Field and Description |
|---|---|
private DatabaseHistory |
databaseHistory |
| Modifier | Constructor and Description |
|---|---|
protected |
HistorizedRelationalDatabaseSchema(HistorizedRelationalDatabaseConnectorConfig config,
TopicSelector<TableId> topicSelector,
Tables.TableFilter tableFilter,
Predicate<ColumnId> columnFilter,
TableSchemaBuilder schemaBuilder,
boolean tableIdCaseInsensitive) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract DdlParser |
getDdlParser()
Returns a new instance of the
DdlParser to be used when recovering the schema from a previously persisted
history. |
protected void |
record(SchemaChangeEvent schemaChange,
TableChanges tableChanges)
Records the given schema change event in the persistent history.
|
void |
recover(OffsetContext offset) |
buildAndRegisterSchema, clearSchemas, getTableFilter, removeSchema, schemaFor, tableFor, tableIds, tablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplySchemaChangeschemaForprivate final DatabaseHistory databaseHistory
protected HistorizedRelationalDatabaseSchema(HistorizedRelationalDatabaseConnectorConfig config, TopicSelector<TableId> topicSelector, Tables.TableFilter tableFilter, Predicate<ColumnId> columnFilter, TableSchemaBuilder schemaBuilder, boolean tableIdCaseInsensitive)
public void recover(OffsetContext offset)
recover in interface HistorizedDatabaseSchema<TableId>public void close()
close in interface DatabaseSchema<TableId>close in class RelationalDatabaseSchemaprotected abstract DdlParser getDdlParser()
DdlParser to be used when recovering the schema from a previously persisted
history.protected void record(SchemaChangeEvent schemaChange, TableChanges tableChanges)
schemaChange - The schema change, must not be nulltableChanges - A logical representation of the change, may be null if a specific implementation solely relies
on storing DDL statements in the historyCopyright © 2018 JBoss by Red Hat. All rights reserved.