Skip to content

Commit

Permalink
HttpCustomRuleFunction support er
Browse files Browse the repository at this point in the history
  • Loading branch information
junwen12221 committed May 27, 2022
1 parent 0a3e20f commit 22cce79
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ protected void init(ShardingTableHandler tableHandler, Map<String, Object> prope
this.shardingDbKeys = new HashSet<>(Arrays.asList(Objects.toString(properties.getOrDefault("shardingDbKeys","")).split(",")));
this.shardingTableKeys = new HashSet<>(Arrays.asList(Objects.toString(properties.getOrDefault("shardingTableKeys","")).split(",")));
this.shardingTargetKeys = new HashSet<>(Arrays.asList(Objects.toString(properties.getOrDefault("shardingTargetKeys","")).split(",")));
this.erUniqueID = properties.toString();

HashMap<String, Object> erInfo = new HashMap<>(properties);
erInfo.remove("shardingDbKeys");
erInfo.remove("shardingTableKeys");
erInfo.remove("shardingTargetKeys");
this.erUniqueID = erInfo.toString();

this.shardingTableType = ShardingTableType.computeByName(this.allScanPartitions);
this.requireShardingKeys = (Set) ImmutableSet.builder()
Expand Down

0 comments on commit 22cce79

Please sign in to comment.