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

Sean Owen commented on SPARK-9744:
----------------------------------

The title of the JIRA is "Add Java RDD method..." but why would this pertain 
only to the Java API and not Scala?
RDDs have no defined ordering except in specific circumstances, like the result 
of a sort operation. Otherwise, yes window functions don't make sense as there 
is no reliable notion of before and after.

> Add Java RDD method to map with lag and lead
> --------------------------------------------
>
>                 Key: SPARK-9744
>                 URL: https://issues.apache.org/jira/browse/SPARK-9744
>             Project: Spark
>          Issue Type: Wish
>            Reporter: Jerry Z
>            Priority: Minor
>
> To avoid zipping with index and doing numerous mapping and joins, having a 
> single method call to map with an additional two parameters (1: list of 
> offsets [(-) for lag, 0 for current and (+) for lead])) and (2:default 
> value). The other difference to the map function takes an argument of List<T> 
> and not just T.



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

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

Reply via email to