Package io.debezium.relational
Class Key.CustomKeyMapper
- java.lang.Object
-
- io.debezium.relational.Key.CustomKeyMapper
-
-
Field Summary
Fields Modifier and Type Field Description private static PatternCOLUMN_SPLITstatic PatternMSG_KEY_COLUMNS_PATTERNPattern for defining the PK columns of a given table, in the form of "table:column1(,column2,...)", optionally with leading/trailing whitespace.static PatternPATTERN_SPLITprivate static PatternTABLE_SPLIT
-
Constructor Summary
Constructors Constructor Description CustomKeyMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Key.KeyMappergetInstance(String fullyQualifiedColumnNames, Selectors.TableIdToStringMapper tableIdMapper)Getting an instance with a list of regexp (table:column1,column2) delimited by ';' matching the tables keys.
-
-
-
Field Detail
-
MSG_KEY_COLUMNS_PATTERN
public static final Pattern MSG_KEY_COLUMNS_PATTERN
Pattern for defining the PK columns of a given table, in the form of "table:column1(,column2,...)", optionally with leading/trailing whitespace.
-
PATTERN_SPLIT
public static final Pattern PATTERN_SPLIT
-
TABLE_SPLIT
private static final Pattern TABLE_SPLIT
-
COLUMN_SPLIT
private static final Pattern COLUMN_SPLIT
-
-
Method Detail
-
getInstance
public static Key.KeyMapper getInstance(String fullyQualifiedColumnNames, Selectors.TableIdToStringMapper tableIdMapper)
Getting an instance with a list of regexp (table:column1,column2) delimited by ';' matching the tables keys. ex: inventory.customers:pk1,pk2;(.*).purchaseorders:pk3,pk4- Parameters:
fullyQualifiedColumnNames- a list of regextableIdMapper- mapper of tableIds to a String- Returns:
- a new
CustomKeyMapperor null if fullyQualifiedColumnNames is invalid.
-
-