public class EmbeddedFlinkDatabaseHistory extends Object implements io.debezium.relational.history.DatabaseHistory
DatabaseHistory implementation which store the latest table schema in Flink state.
It stores/recovers history using data offered by MySqlSplitState.
| Modifier and Type | Field and Description |
|---|---|
static String |
DATABASE_HISTORY_INSTANCE_NAME |
static ConcurrentMap<String,Collection<io.debezium.relational.history.TableChanges.TableChange>> |
TABLE_SCHEMAS |
| Constructor and Description |
|---|
EmbeddedFlinkDatabaseHistory() |
| Modifier and Type | Method and Description |
|---|---|
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() |
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<String,?> source,
Map<String,?> position,
io.debezium.relational.Tables schema,
io.debezium.relational.ddl.DdlParser ddlParser) |
static void |
registerHistory(String engineName,
Collection<io.debezium.relational.history.TableChanges.TableChange> engineHistory) |
static Collection<io.debezium.relational.history.TableChanges.TableChange> |
removeHistory(String engineName) |
boolean |
skipUnparseableDdlStatements() |
void |
start() |
void |
stop() |
boolean |
storageExists() |
boolean |
storeOnlyMonitoredTables() |
public static final String DATABASE_HISTORY_INSTANCE_NAME
public static final ConcurrentMap<String,Collection<io.debezium.relational.history.TableChanges.TableChange>> TABLE_SCHEMAS
public void configure(io.debezium.config.Configuration config,
io.debezium.relational.history.HistoryRecordComparator comparator,
io.debezium.relational.history.DatabaseHistoryListener listener,
boolean useCatalogBeforeSchema)
configure in interface io.debezium.relational.history.DatabaseHistorypublic void start()
start in interface io.debezium.relational.history.DatabaseHistorypublic void record(Map<String,?> source, Map<String,?> position, String databaseName, String ddl) throws io.debezium.relational.history.DatabaseHistoryException
record in interface 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 in interface 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 in interface io.debezium.relational.history.DatabaseHistorypublic void stop()
stop in interface io.debezium.relational.history.DatabaseHistorypublic boolean exists()
exists in interface io.debezium.relational.history.DatabaseHistorypublic boolean storageExists()
storageExists in interface io.debezium.relational.history.DatabaseHistorypublic void initializeStorage()
initializeStorage in interface io.debezium.relational.history.DatabaseHistorypublic boolean storeOnlyMonitoredTables()
storeOnlyMonitoredTables in interface io.debezium.relational.history.DatabaseHistorypublic boolean skipUnparseableDdlStatements()
skipUnparseableDdlStatements in interface io.debezium.relational.history.DatabaseHistorypublic static void registerHistory(String engineName, Collection<io.debezium.relational.history.TableChanges.TableChange> engineHistory)
public static Collection<io.debezium.relational.history.TableChanges.TableChange> removeHistory(String engineName)
Copyright © 2022 The Apache Software Foundation. All rights reserved.