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

Add Resolver type to clean up non-cascading backends #1835

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

johnynek
Copy link
Collaborator

@johnynek johnynek commented Mar 3, 2018

To break the pattern of making Sources and Sinks know about all the platforms, we need some way to look up the backend specific way to read/write. Much of that code will be the same, so I introduced a Resolver type to give us some basic combinators to work with (orElse, andThen, empty, pair being the most common).

This will also be used for the spark backend which is developing in #1832

@johnynek
Copy link
Collaborator Author

johnynek commented Mar 3, 2018

@ianoc @erik-stripe @fwbrasil can someone review?

@ianoc
Copy link
Collaborator

ianoc commented Mar 6, 2018

lgtm

@ianoc ianoc merged commit 74991e4 into develop Mar 6, 2018
@ianoc ianoc deleted the oscar/add_resolver branch March 6, 2018 01:34
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.

2 participants