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

Adds the ability to add an Optional component onto any strategy #198

Merged
merged 2 commits into from
Dec 16, 2013

Conversation

ianoc
Copy link
Collaborator

@ianoc ianoc commented Dec 16, 2013

No description provided.

@@ -37,6 +37,15 @@ trait QueryStrategy[-Q,-L,X] extends Serializable { self =>
/** Used in your summingbird job to flatmap your keys, increment all these X with the value */
def index(key: L): Set[X]

def withOptionalStrategy: QueryStrategy[Option[Q],L,Option[X]] = new AbstractQueryStrategy[Option[Q], L, Option[X]] {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we rename .withOption?

johnynek added a commit that referenced this pull request Dec 16, 2013
Adds the ability to add an Optional component onto any strategy
@johnynek johnynek merged commit 05d36f1 into develop Dec 16, 2013
@johnynek johnynek deleted the feature/addOptionalStrategyAlgebra branch December 16, 2013 21:55
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