eab148 commented on code in PR #6484:
URL: https://github.com/apache/hbase/pull/6484#discussion_r1857125536


##########
hbase-client/src/main/java/org/apache/hadoop/hbase/replication/ReplicationPeerConfigBuilder.java:
##########
@@ -97,13 +97,39 @@ default ReplicationPeerConfigBuilder 
putAllPeerData(Map<byte[], byte[]> peerData
    */
   ReplicationPeerConfigBuilder setTableCFsMap(Map<TableName, List<String>> 
tableCFsMap);
 
+  /**
+   * Sets an explicit map of source to sink tables that should be replicated 
to the given peer. If
+   * the map is empty for a table, the source table is used for the given peer.
+   * @param sourceToSinkTableOverrides A map from a source tableName to sink 
tableName. By default,
+   *                                   edits will be replicated to the same 
target table as the
+   *                                   source table. A null or empty 
collection can be passed to
+   *                                   indicate there are no overrides.
+   * @return {@code this}
+   */
+  ReplicationPeerConfigBuilder
+    setSourceToSinkTableOverrides(Map<TableName, TableName> 
sourceToSinkTableOverrides);

Review Comment:
   If the two override scopes does not make sense. I am happy to converge on 
tableName scoped overrides alone, since every namespace scoped override can be 
encoded as a tableName override.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to