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 2015/12/09 21:40:10 UTC

[jira] [Assigned] (SPARK-12244) Rename trackStateByKey to mapWithState

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

Apache Spark reassigned SPARK-12244:
------------------------------------

    Assignee: Tathagata Das  (was: Apache Spark)

> Rename trackStateByKey to mapWithState
> --------------------------------------
>
>                 Key: SPARK-12244
>                 URL: https://issues.apache.org/jira/browse/SPARK-12244
>             Project: Spark
>          Issue Type: Bug
>          Components: Streaming
>            Reporter: Tathagata Das
>            Assignee: Tathagata Das
>
> Based on feedback from early users and personal experience attempting to explain it, the name trackStateByKey had two problem.
> - "trackState" is a completely new term which really does not give any intuition on what the operation is
> - the resultant data stream of objects returned by the function is called in docs as the "emitted" data for the lack of a better. 
> "mapWithState" makes sense because the API is like a mapping function like (Key, Value) => T with State as an additional parameter. The resultant data stream is "mapped data". So both problems are solved.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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