You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2022/04/24 03:04:00 UTC
[jira] [Created] (SPARK-39005) Introduce more functions to KVUtils
Yang Jie created SPARK-39005:
--------------------------------
Summary: Introduce more 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
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