Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/2478#issuecomment-56858958
> what's the purpose of exposing an array of partition objects in
Scala&Java?
In Scala / Java, I think we expose Partition objects for use in custom RDD
implementations. There are a bunch of methods like `iterator()`, `compute()`,
`preferredLocations()`, etc. that take Partition objects. Outside of this
context, I'm not sure that they're useful to end-users.
(If you use IntelliJ, try running "Find Usages" on Partition and look at
the "Method Parameter Declaration" usages).
---
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]