Package io.debezium.relational
Class Key.CustomKeyMapper
java.lang.Object
io.debezium.relational.Key.CustomKeyMapper
- Enclosing class:
- Key
Custom Key mapper used to override or defining a custom
Key
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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
-
TABLE_SPLIT
-
COLUMN_SPLIT
-
-
Constructor Details
-
CustomKeyMapper
public CustomKeyMapper()
-
-
Method Details
-
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.
-