LuciferYang commented on code in PR #36237:
URL: https://github.com/apache/spark/pull/36237#discussion_r853779042


##########
core/src/main/scala/org/apache/spark/status/KVUtils.scala:
##########
@@ -100,6 +100,33 @@ private[spark] object KVUtils extends Logging {
     }
   }
 
+  /** Counts the number of elements in the KVStoreView which satisfy a 
predicate. */
+  def count[T](view: KVStoreView[T])(countFunc: T => Boolean): Int = {

Review Comment:
   @srowen Do you mind if I split the newly introduced functions and related 
refactoring work into another pr? It seems that the change of this part does 
not increase the complexity of the code.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to