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 |
private boolean |
recoveredTables |
NO_CAPTURED_DATA_COLLECTIONS_WARNING| Modifier | Constructor and Description |
|---|---|
protected |
HistorizedRelationalDatabaseSchema(HistorizedRelationalDatabaseConnectorConfig config,
TopicSelector<TableId> topicSelector,
Tables.TableFilter tableFilter,
Tables.ColumnNameFilter columnFilter,
TableSchemaBuilder schemaBuilder,
boolean tableIdCaseInsensitive,
Key.KeyMapper customKeysMapper) |
| 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. |
void |
initializeStorage()
Configures a storage used to store history, e.g.
|
protected void |
record(SchemaChangeEvent schemaChange,
TableChanges tableChanges)
Records the given schema change event in the persistent history.
|
void |
recover(OffsetContext offset) |
boolean |
tableInformationComplete()
Indicates whether or not table names are guaranteed to be fully present, regardless of whether or not a
snapshot has been performed.
|
assureNonEmptySchema, buildAndRegisterSchema, clearSchemas, getTableFilter, removeSchema, schemaFor, tableFor, tableIds, tablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplySchemaChangeassureNonEmptySchema, schemaForprivate final DatabaseHistory databaseHistory
private boolean recoveredTables
protected HistorizedRelationalDatabaseSchema(HistorizedRelationalDatabaseConnectorConfig config, TopicSelector<TableId> topicSelector, Tables.TableFilter tableFilter, Tables.ColumnNameFilter columnFilter, TableSchemaBuilder schemaBuilder, boolean tableIdCaseInsensitive, Key.KeyMapper customKeysMapper)
public void recover(OffsetContext offset)
recover in interface HistorizedDatabaseSchema<TableId>public void close()
close in interface DatabaseSchema<TableId>close in class RelationalDatabaseSchemapublic void initializeStorage()
initializeStorage in interface HistorizedDatabaseSchema<TableId>protected 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 historypublic boolean tableInformationComplete()
DatabaseSchematableInformationComplete in interface DatabaseSchema<TableId>tableInformationComplete in class RelationalDatabaseSchemaCopyright © 2021 JBoss by Red Hat. All rights reserved.