Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make flatMap functions accept TraversableOnce #222

Closed
johnynek opened this issue Nov 7, 2012 · 1 comment
Closed

Make flatMap functions accept TraversableOnce #222

johnynek opened this issue Nov 7, 2012 · 1 comment
Milestone

Comments

@johnynek
Copy link
Collaborator

johnynek commented Nov 7, 2012

TraversableOnce is a superclass of both Iterable and Iterator. Since we only iterate through once, we could accept that and deal with some objects that can't easily restart (such as iterators from disk etc...)

Shouldn't be a source breaking change.

@johnynek
Copy link
Collaborator Author

Also, we should go through and look at internal uses of map/flatMap and see if we can use iterators to reduce in-memory space.

For instance, in replication in blockJoin and skewJoin, we don't need to materialize the replication fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant