You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/04/24 03:10:00 UTC

[jira] [Commented] (SPARK-39005) Introduce 4 new functions to KVUtils

    [ https://issues.apache.org/jira/browse/SPARK-39005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17526966#comment-17526966 ] 

Apache Spark commented on SPARK-39005:
--------------------------------------

User 'LuciferYang' has created a pull request for this issue:
https://github.com/apache/spark/pull/36331

> Introduce 4 new functions to KVUtils
> ------------------------------------
>
>                 Key: SPARK-39005
>                 URL: https://issues.apache.org/jira/browse/SPARK-39005
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Yang Jie
>            Priority: Minor
>
> Introduce 4 new functions
>  * 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 above functions to simplify the code related to `KVStoreView`, and the above functions will release `LevelDB/RocksDBIterator` earlier.
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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