public class FlinkDatabaseSchemaHistory extends Object implements io.debezium.relational.history.DatabaseHistory
FlinkDatabaseSchemaHistory only stores the latest schema of the monitored tables.
When recovering from the checkpoint, it should apply all the tables to the DatabaseSchema, which doesn't need to replay the history anymore.
Considering the data structure maintained in the FlinkDatabaseSchemaHistory is much
different from the FlinkDatabaseHistory, it's not compatible with the FlinkDatabaseHistory. Because it only maintains the latest schema of the table rather than all
history DDLs, it's useful to prevent OOM when meet massive history DDLs.
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DATABASE_HISTORY_INSTANCE_NAME |
| 构造器和说明 |
|---|
FlinkDatabaseSchemaHistory() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configure(io.debezium.config.Configuration config,
io.debezium.relational.history.HistoryRecordComparator comparator,
io.debezium.relational.history.DatabaseHistoryListener listener,
boolean useCatalogBeforeSchema) |
boolean |
exists() |
void |
initializeStorage() |
static boolean |
isCompatible(Collection<SchemaRecord> records)
Determine whether the
FlinkDatabaseSchemaHistory is compatible with the specified
state. |
void |
record(Map<String,?> source,
Map<String,?> position,
String databaseName,
String ddl) |
void |
record(Map<String,?> source,
Map<String,?> position,
String databaseName,
String schemaName,
String ddl,
io.debezium.relational.history.TableChanges changes) |
void |
recover(Map<Map<String,?>,Map<String,?>> offsets,
io.debezium.relational.Tables schema,
io.debezium.relational.ddl.DdlParser ddlParser) |
void |
recover(Map<String,?> source,
Map<String,?> position,
io.debezium.relational.Tables schema,
io.debezium.relational.ddl.DdlParser ddlParser) |
boolean |
skipUnparseableDdlStatements() |
void |
start() |
void |
stop() |
boolean |
storageExists() |
boolean |
storeOnlyCapturedTables() |
public void configure(io.debezium.config.Configuration config,
io.debezium.relational.history.HistoryRecordComparator comparator,
io.debezium.relational.history.DatabaseHistoryListener listener,
boolean useCatalogBeforeSchema)
configure 在接口中 io.debezium.relational.history.DatabaseHistorypublic void start()
start 在接口中 io.debezium.relational.history.DatabaseHistorypublic void record(Map<String,?> source, Map<String,?> position, String databaseName, String ddl) throws io.debezium.relational.history.DatabaseHistoryException
record 在接口中 io.debezium.relational.history.DatabaseHistoryio.debezium.relational.history.DatabaseHistoryExceptionpublic void record(Map<String,?> source, Map<String,?> position, String databaseName, String schemaName, String ddl, io.debezium.relational.history.TableChanges changes) throws io.debezium.relational.history.DatabaseHistoryException
record 在接口中 io.debezium.relational.history.DatabaseHistoryio.debezium.relational.history.DatabaseHistoryExceptionpublic void recover(Map<String,?> source, Map<String,?> position, io.debezium.relational.Tables schema, io.debezium.relational.ddl.DdlParser ddlParser)
recover 在接口中 io.debezium.relational.history.DatabaseHistorypublic void recover(Map<Map<String,?>,Map<String,?>> offsets, io.debezium.relational.Tables schema, io.debezium.relational.ddl.DdlParser ddlParser)
recover 在接口中 io.debezium.relational.history.DatabaseHistorypublic void stop()
stop 在接口中 io.debezium.relational.history.DatabaseHistorypublic boolean exists()
exists 在接口中 io.debezium.relational.history.DatabaseHistorypublic boolean storageExists()
storageExists 在接口中 io.debezium.relational.history.DatabaseHistorypublic void initializeStorage()
initializeStorage 在接口中 io.debezium.relational.history.DatabaseHistorypublic boolean storeOnlyCapturedTables()
storeOnlyCapturedTables 在接口中 io.debezium.relational.history.DatabaseHistorypublic boolean skipUnparseableDdlStatements()
skipUnparseableDdlStatements 在接口中 io.debezium.relational.history.DatabaseHistorypublic static boolean isCompatible(Collection<SchemaRecord> records)
FlinkDatabaseSchemaHistory is compatible with the specified
state.Copyright © 2025 The Apache Software Foundation. All rights reserved.