morrySnow commented on code in PR #13949: URL: https://github.com/apache/doris/pull/13949#discussion_r1016805590
########## fe/fe-core/src/main/java/org/apache/doris/nereids/processor/post/RuntimeFilterContext.java: ########## @@ -86,36 +87,25 @@ public FilterSizeLimits getLimits() { return limits; } - public void setTargetExprIdToFilters(ExprId id, RuntimeFilter... filters) { - Preconditions.checkArgument(Arrays.stream(filters) - .allMatch(filter -> filter.getTargetExpr().getExprId() == id)); - this.targetExprIdToFilter.computeIfAbsent(id, k -> Lists.newArrayList()) - .addAll(Arrays.asList(filters)); + public void setTargetExprIdToFilter(ExprId id, RuntimeFilter filter) { + Preconditions.checkArgument(filter.getTargetExpr().getExprId() == id); + this.targetExprIdToFilter.computeIfAbsent(id, k -> Lists.newArrayList()).add(filter); } - public List<RuntimeFilter> getFiltersByTargetExprId(ExprId id) { - return targetExprIdToFilter.get(id); + public void setTargetsOnScanNode(RelationId id, Slot slot) { + this.targetOnOlapScanNodeMap.computeIfAbsent(id, k -> Lists.newArrayList()).add(slot); } - public void removeFilters(ExprId id) { - targetExprIdToFilter.remove(id); - } - - public void setTargetsOnScanNode(RelationId id, Slot... slots) { - this.targetOnOlapScanNodeMap.computeIfAbsent(id, k -> Lists.newArrayList()) - .addAll(Arrays.asList(slots)); - } - - public <K, V> void setKVInNormalMap(@NotNull Map<K, V> map, K key, V value) { + public <K, V> void setKVInMap(@NotNull Map<K, V> map, K key, V value) { Review Comment: remove it -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org