Github user koeninger commented on the pull request:
https://github.com/apache/spark/pull/5927#issuecomment-100237401
I think if you're going to decide you really don't like
withContext/withIndex etc they should be marked as deprecated, in addition to
having a scaladoc reference to TaskContext.get
Either that or foreachPartitionWithIndex seems ok to me.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]