LuciferYang opened a new pull request, #36331:
URL: https://github.com/apache/spark/pull/36331

   ### What changes were proposed in this pull request?
   This pr Introduce 4 new functions to KVUtils as follows:
   
   - count:Counts the number of elements in the KVStoreView which satisfy a 
predicate.
   - foreach:Applies a function f to all values produced by KVStoreView.
   - mapToSeq:Maps all values of KVStoreView to new Seq using a transformation 
function.
   - size: The size of KVStoreView.
   
   and use the these functions to simplify the code related to `KVStoreView`, 
the above functions will release `LevelDB/RocksDBIterator` earlier also.
   
   
   ### Why are the changes needed?
   Simplify code related to `KVStoreView` and release `LevelDB/RocksDBIterator` 
earlier.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Pass GA


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