Class Key.CustomKeyMapper

  • Enclosing class:
    Key

    public static class Key.CustomKeyMapper
    extends Object
    Custom Key mapper used to override or defining a custom Key
    • 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
    • Constructor Detail

      • CustomKeyMapper

        public CustomKeyMapper()
    • 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 regex
        tableIdMapper - mapper of tableIds to a String
        Returns:
        a new CustomKeyMapper or null if fullyQualifiedColumnNames is invalid.