public class FlinkDatabaseHistory
extends io.debezium.relational.history.AbstractDatabaseHistory
MemoryDatabaseHistory but we will store the
HistoryRecords in Flink's state for persistence.
Note: This is not a clean solution because we depends on a global variable and all the history records will be stored in state (grow infinitely). We may need to come up with a FileSystemDatabaseHistory in the future to store history in HDFS.
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DATABASE_HISTORY_INSTANCE_NAME |
| 构造器和说明 |
|---|
FlinkDatabaseHistory() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configure(io.debezium.config.Configuration config,
io.debezium.relational.history.HistoryRecordComparator comparator,
io.debezium.relational.history.DatabaseHistoryListener listener,
boolean useCatalogBeforeSchema) |
boolean |
exists() |
static boolean |
isCompatible(Collection<SchemaRecord> records)
Determine whether the
FlinkDatabaseHistory is compatible with the specified state. |
protected void |
recoverRecords(java.util.function.Consumer<io.debezium.relational.history.HistoryRecord> records) |
void |
stop() |
boolean |
storageExists() |
protected void |
storeRecord(io.debezium.relational.history.HistoryRecord record) |
String |
toString() |
initializeStorage, record, record, recover, skipUnparseableDdlStatements, start, storeOnlyCapturedTablespublic 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.DatabaseHistoryconfigure 在类中 io.debezium.relational.history.AbstractDatabaseHistorypublic void stop()
stop 在接口中 io.debezium.relational.history.DatabaseHistorystop 在类中 io.debezium.relational.history.AbstractDatabaseHistoryprotected void storeRecord(io.debezium.relational.history.HistoryRecord record)
throws io.debezium.relational.history.DatabaseHistoryException
storeRecord 在类中 io.debezium.relational.history.AbstractDatabaseHistoryio.debezium.relational.history.DatabaseHistoryExceptionprotected void recoverRecords(java.util.function.Consumer<io.debezium.relational.history.HistoryRecord> records)
recoverRecords 在类中 io.debezium.relational.history.AbstractDatabaseHistorypublic boolean exists()
public boolean storageExists()
public static boolean isCompatible(Collection<SchemaRecord> records)
FlinkDatabaseHistory is compatible with the specified state.Copyright © 2025 The Apache Software Foundation. All rights reserved.