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

More direct map and filter in typed API #1772

Merged
merged 1 commit into from
Jan 29, 2018
Merged

Conversation

johnynek
Copy link
Collaborator

closes #1742

We actually have map and filter implementations in the untyped cascading DSL of RichPipe, but somehow we never used them in the typed API.

This is a shame because for filter we were hiding them from cascading, and we were boxing all maps into single iterators, which we don't need to do. Lastly, the iteration in the FlatMapFunction we skip since in a map you know there is exactly one.

Finally, I think cascading reuses the tuple with a filter, so there is less allocation. This may also be possible with map, but I'm not 100% clear about it.

@ianoc ianoc merged commit 4c5c920 into develop Jan 29, 2018
@ianoc ianoc deleted the oscar/cascading-map-filter branch January 29, 2018 17:40
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

Successfully merging this pull request may close these issues.

Add a literal cascading filter and map
2 participants