strongduanmu commented on a change in pull request #11895:
URL: https://github.com/apache/shardingsphere/pull/11895#discussion_r691835612



##########
File path: 
shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/rule/single/SingleTableRule.java
##########
@@ -162,4 +163,19 @@ public boolean isNeedAccumulate(final Collection<String> 
tables) {
     public Collection<String> getAllTables() {
         return singleTableDataNodes.keySet();
     }
+    
+    @Override
+    public Collection<String> getTables() {
+        return singleTableDataNodes.keySet();
+    }
+    
+    /**
+     * Judge whether single table is exist in this rule.
+     *
+     * @param tableName table name
+     * @return table is belong to this rule or not
+     */
+    public boolean isSingleTableExist(final String tableName) {

Review comment:
       @tuichenchuxin Please remove this duplicate method.




-- 
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