public abstract class RelationalDatabaseSchema extends Object implements DatabaseSchema<TableId>
DatabaseSchema of a relational database such as Postgres.| Modifier and Type | Class and Description |
|---|---|
private static class |
RelationalDatabaseSchema.SchemasByTableId
A map of schemas by table id.
|
| Modifier and Type | Field and Description |
|---|---|
private Predicate<ColumnId> |
columnFilter |
private ColumnMappers |
columnMappers |
private TableSchemaBuilder |
schemaBuilder |
private String |
schemaPrefix |
private RelationalDatabaseSchema.SchemasByTableId |
schemasByTableId |
private Predicate<TableId> |
tableFilter |
private Tables |
tables |
private TopicSelector<TableId> |
topicSelector |
| Modifier | Constructor and Description |
|---|---|
protected |
RelationalDatabaseSchema(CommonConnectorConfig config,
TopicSelector<TableId> topicSelector,
Predicate<TableId> tableFilter,
Predicate<ColumnId> columnFilter,
TableSchemaBuilder schemaBuilder,
boolean tableIdCaseInsensitive) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildAndRegisterSchema(Table table) |
protected void |
clearSchemas() |
void |
close() |
private String |
getEnvelopeSchemaName(Table table) |
private static String |
getSchemaPrefix(String serverName) |
protected void |
removeSchema(TableId id) |
TableSchema |
schemaFor(TableId id)
Get the
Schema information for the table with the given identifier, if that table exists and
is included by the filter configuration. |
Table |
tableFor(TableId id)
Get the
Table meta-data for the table with the given identifier, if that table exists and is
included by the filter configuration |
Set<TableId> |
tableIds()
Returns the set of table ids included in the current filter configuration.
|
protected Tables |
tables() |
private final TopicSelector<TableId> topicSelector
private final TableSchemaBuilder schemaBuilder
private final ColumnMappers columnMappers
private final String schemaPrefix
private final RelationalDatabaseSchema.SchemasByTableId schemasByTableId
private final Tables tables
protected RelationalDatabaseSchema(CommonConnectorConfig config, TopicSelector<TableId> topicSelector, Predicate<TableId> tableFilter, Predicate<ColumnId> columnFilter, TableSchemaBuilder schemaBuilder, boolean tableIdCaseInsensitive)
public void close()
close in interface DatabaseSchema<TableId>public Set<TableId> tableIds()
public TableSchema schemaFor(TableId id)
Schema information for the table with the given identifier, if that table exists and
is included by the filter configuration.
Note that the Schema will not contain any columns that have been filtered out.
schemaFor in interface DatabaseSchema<TableId>id - the table identifier; may be nullpublic Table tableFor(TableId id)
Table meta-data for the table with the given identifier, if that table exists and is
included by the filter configurationid - the table identifier; may be nullprotected Tables tables()
protected void clearSchemas()
protected void buildAndRegisterSchema(Table table)
protected void removeSchema(TableId id)
Copyright © 2018 JBoss by Red Hat. All rights reserved.