Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Add an optional parameter to set default parallelism for a storm source #319

Merged
merged 3 commits into from
Oct 23, 2013

Conversation

ianoc
Copy link
Collaborator

@ianoc ianoc commented Oct 22, 2013

No description provided.

@@ -79,11 +79,13 @@ object Storm {
def store[K, V](store: => MergeableStore[(K, BatchID), V])(implicit batcher: Batcher): MergeableStoreSupplier[K, V] =
MergeableStoreSupplier.from(store)

implicit def toStormSource[T](spout: Spout[T])(implicit timeOf: TimeExtractor[T]) =
SpoutSource(spout.map(t => (timeOf(t), t)))
implicit def toStormSource[T](spout: Spout[T], defaultSourcePar: Option[Int] = None)(implicit timeOf: TimeExtractor[T]) =
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this implicit will apply if there are two arguments, will it?

johnynek added a commit that referenced this pull request Oct 23, 2013
Add an optional parameter to set default parallelism for a storm source
@johnynek johnynek merged commit b291286 into develop Oct 23, 2013
@johnynek johnynek deleted the feature/paralellism_source branch October 23, 2013 23:37
snoble pushed a commit to snoble/summingbird that referenced this pull request Sep 8, 2017
Little commit fixing up some spacing per our norms:
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants