Package io.debezium.connector.postgresql
Class ReplicaIdentityMapper
java.lang.Object
io.debezium.connector.postgresql.ReplicaIdentityMapper
Class that records Replica Identity information for the
PostgresConnector- Author:
- Ben White, Miguel Sotomayor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindReplicaIdentity(TableId tableId) This method get the Replica Identity of theTableId, checking if theTableIdis contained in theMapofPredicatesstored inreplicaIdentityPredicateMapprivate Map<Predicate<TableId>, ReplicaIdentityInfo> This method parses the property `replica.identity.autoset.values` stored inreplicaAutoSetValueattribute generating a map collection with the Table and its respective Replica Identity
-
Field Details
-
REPLICA_AUTO_SET_PATTERN
-
PATTERN_SPLIT
-
replicaIdentityPredicateMap
-
replicaAutoSetValue
-
-
Constructor Details
-
ReplicaIdentityMapper
-
-
Method Details
-
findReplicaIdentity
This method get the Replica Identity of theTableId, checking if theTableIdis contained in theMapofPredicatesstored inreplicaIdentityPredicateMap- Parameters:
tableId- the identifier of the table- Returns:
ReplicaIdentityInfoof theTableId- Throws:
DebeziumException- if there is a problem obtaining the replica identity for the given table
-
getReplicaIdentityPredicateMap
This method parses the property `replica.identity.autoset.values` stored inreplicaAutoSetValueattribute generating a map collection with the Table and its respective Replica Identity- Returns:
Mapcollection that containsTableIdas Key andReplicaIdentityInfoas value
-