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 Pattern
COLUMN_SPLIT
static 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.static Pattern
PATTERN_SPLIT
private static Pattern
TABLE_SPLIT
-
Constructor Summary
Constructors Constructor Description CustomKeyMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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
CustomKeyMapper
or null if fullyQualifiedColumnNames is invalid.
-
-