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 2023/10/20 15:02:00 UTC

[jira] [Assigned] (SPARK-45602) Replace `s.c.MapOps.filterKeys` with `s.c.MapOps.view.filterKeys`

     [ https://issues.apache.org/jira/browse/SPARK-45602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang Jie reassigned SPARK-45602:
--------------------------------

    Assignee: Yang Jie

> Replace `s.c.MapOps.filterKeys` with `s.c.MapOps.view.filterKeys`
> -----------------------------------------------------------------
>
>                 Key: SPARK-45602
>                 URL: https://issues.apache.org/jira/browse/SPARK-45602
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Kubernetes, Spark Core, SQL, YARN
>    Affects Versions: 4.0.0
>            Reporter: Yang Jie
>            Assignee: Yang Jie
>            Priority: Major
>              Labels: pull-request-available
>
> {code:java}
> /** Filters this map by retaining only keys satisfying a predicate.
>   *  @param  p   the predicate used to test keys
>   *  @return an immutable map consisting only of those key value pairs of this map where the key satisfies
>   *          the predicate `p`. The resulting map wraps the original map without copying any elements.
>   */
> @deprecated("Use .view.filterKeys(f). A future version will include a strict version of this method (for now, .view.filterKeys(p).toMap).", "2.13.0")
> def filterKeys(p: K => Boolean): MapView[K, V] = new MapView.FilterKeys(this, p) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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