[ https://issues.apache.org/jira/browse/FLINK-2152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14585726#comment-14585726 ]
ASF GitHub Bot commented on FLINK-2152: --------------------------------------- Github user tillrohrmann commented on the pull request: https://github.com/apache/flink/pull/832#issuecomment-112000953 Good work @andralungu. The data set utils are not working with the Scala API. Would be nice to support for Scala a syntax like ``` val ds: DataSet[String] = ... val zipped: DataSet[(Long, String)] = ds.zipWithIndex ``` > Provide zipWithIndex utility in flink-contrib > --------------------------------------------- > > Key: FLINK-2152 > URL: https://issues.apache.org/jira/browse/FLINK-2152 > Project: Flink > Issue Type: Improvement > Components: Java API > Reporter: Robert Metzger > Assignee: Andra Lungu > Priority: Trivial > Labels: starter > > We should provide a simple utility method for zipping elements in a data set > with a dense index. > its up for discussion whether we want it directly in the API or if we should > provide it only as a utility from {{flink-contrib}}. > I would put it in {{flink-contrib}}. > See my answer on SO: > http://stackoverflow.com/questions/30596556/zipwithindex-on-apache-flink -- This message was sent by Atlassian JIRA (v6.3.4#6332)