public TableSchema get(TableId tableId) { return values.get(toLowerCaseIfNeeded(tableId)); }
/** * Get the {@link TableSchema Schema information} for the table with the given identifier, if that table exists and * is included by the filter configuration. * <p> * Note that the {@link Schema} will not contain any columns that have been filtered out. * * @param id * the table identifier; may be null * @return the schema information, or null if there is no table with the given identifier, if the identifier is * null, or if the table has been excluded by the filters */ @Override public TableSchema schemaFor(TableId id) { return schemasByTableId.get(id); }
public TableSchema put(TableId tableId, TableSchema updated) { return values.put(toLowerCaseIfNeeded(tableId), updated); }
protected void clearSchemas() { schemasByTableId.clear(); }
public TableSchema get(TableId tableId) { return values.get(toLowerCaseIfNeeded(tableId)); }
protected void removeSchema(TableId id) { schemasByTableId.remove(id); }
public TableSchema remove(TableId tableId) { return values.remove(toLowerCaseIfNeeded(tableId)); }
protected RelationalDatabaseSchema(CommonConnectorConfig config, TopicSelector<TableId> topicSelector, TableFilter tableFilter, Predicate<ColumnId> columnFilter, TableSchemaBuilder schemaBuilder, boolean tableIdCaseInsensitive) { this.topicSelector = topicSelector; this.schemaBuilder = schemaBuilder; this.tableFilter = tableFilter; this.columnFilter = columnFilter; this.columnMappers = ColumnMappers.create(config.getConfig()); this.schemaPrefix = getSchemaPrefix(config.getLogicalName()); this.schemasByTableId = new SchemasByTableId(tableIdCaseInsensitive); this.tables = new Tables(tableIdCaseInsensitive); }
/** * Builds up the CDC event schema for the given table and stores it in this schema. */ protected void buildAndRegisterSchema(Table table) { if (tableFilter.isIncluded(table.id())) { TableSchema schema = schemaBuilder.create(schemaPrefix, getEnvelopeSchemaName(table), table, columnFilter, columnMappers); schemasByTableId.put(table.id(), schema); } }
protected void removeSchema(TableId id) { schemasByTableId.remove(id); }
/** * Get the {@link TableSchema Schema information} for the table with the given identifier, if that table exists and * is included by the filter configuration. * <p> * Note that the {@link Schema} will not contain any columns that have been filtered out. * * @param id * the table identifier; may be null * @return the schema information, or null if there is no table with the given identifier, if the identifier is * null, or if the table has been excluded by the filters */ @Override public TableSchema schemaFor(TableId id) { return schemasByTableId.get(id); }
protected void clearSchemas() { schemasByTableId.clear(); }
public TableSchema put(TableId tableId, TableSchema updated) { return values.put(toLowerCaseIfNeeded(tableId), updated); }
public TableSchema remove(TableId tableId) { return values.remove(toLowerCaseIfNeeded(tableId)); }
protected RelationalDatabaseSchema(CommonConnectorConfig config, TopicSelector<TableId> topicSelector, TableFilter tableFilter, Predicate<ColumnId> columnFilter, TableSchemaBuilder schemaBuilder, boolean tableIdCaseInsensitive) { this.topicSelector = topicSelector; this.schemaBuilder = schemaBuilder; this.tableFilter = tableFilter; this.columnFilter = columnFilter; this.columnMappers = ColumnMappers.create(config.getConfig()); this.schemaPrefix = getSchemaPrefix(config.getLogicalName()); this.schemasByTableId = new SchemasByTableId(tableIdCaseInsensitive); this.tables = new Tables(tableIdCaseInsensitive); }
/** * Builds up the CDC event schema for the given table and stores it in this schema. */ protected void buildAndRegisterSchema(Table table) { if (tableFilter.isIncluded(table.id())) { TableSchema schema = schemaBuilder.create(schemaPrefix, getEnvelopeSchemaName(table), table, columnFilter, columnMappers); schemasByTableId.put(table.id(), schema); } }