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: [email protected]
For additional commands, e-mail: [email protected]