Class DatabaseHistoryUtil
- java.lang.Object
-
- org.apache.flink.cdc.debezium.utils.DatabaseHistoryUtil
-
public class DatabaseHistoryUtil extends Object
Util to safely visit schema history betweenDatabaseHistoryandDebeziumSourceFunction.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregisterHistory(String engineName, Collection<SchemaRecord> engineHistory)Registers history of schema safely.static voidremoveHistory(String engineName)Remove history of schema safely.static Collection<SchemaRecord>retrieveHistory(String engineName)Retrieves history of schema safely, this method firstly checks the history status of specific engine, and then return the history of schema if the history exists(didn't clean up yet).
-
-
-
Method Detail
-
registerHistory
public static void registerHistory(String engineName, Collection<SchemaRecord> engineHistory)
Registers history of schema safely.
-
removeHistory
public static void removeHistory(String engineName)
Remove history of schema safely.
-
retrieveHistory
public static Collection<SchemaRecord> retrieveHistory(String engineName)
Retrieves history of schema safely, this method firstly checks the history status of specific engine, and then return the history of schema if the history exists(didn't clean up yet). Returns null when the history of schema has been clean up.
-
-