You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/04/24 03:07:44 UTC

[GitHub] [spark] LuciferYang opened a new pull request, #36331: [SPARK-39005][CORE][SQL] Introduce 4 new functions to KVUtils to simplify code and release `LevelDB/RocksDBIterator` earlier.

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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] LuciferYang closed pull request #36331: [SPARK-39005][CORE][SQL] Introduce 4 new functions to `KVUtils` to simplify code and release `LevelDB/RocksDBIterator` earlier.

Posted by GitBox <gi...@apache.org>.
LuciferYang closed pull request #36331: [SPARK-39005][CORE][SQL] Introduce 4 new functions to `KVUtils` to simplify code and release `LevelDB/RocksDBIterator` earlier.
URL: https://github.com/apache/spark/pull/36331


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org