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

Cleanup the Storm API a bit #360

Merged
merged 2 commits into from
Nov 13, 2013
Merged

Cleanup the Storm API a bit #360

merged 2 commits into from
Nov 13, 2013

Conversation

johnynek
Copy link
Collaborator

No description provided.

@ianoc
Copy link
Collaborator

ianoc commented Nov 12, 2013

Mixing WS with code changes...

def service[K, V](serv: => ReadableStore[K, V]): StormService[K, V] = StoreWrapper(() => serv)

def toStormSource[T](spout: Spout[T],
defaultSourcePar: Option[Int] = None)(implicit timeOf: TimeExtractor[T]): StormSource[T] =
Copy link
Collaborator

Choose a reason for hiding this comment

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

Indentations appear odd, increasing indentation because of split in args? args should be further indented but method code the normal amount imo

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

tell me what you want to type.

Copy link
Collaborator

Choose a reason for hiding this comment

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

def toStormSource[T](spout: Spout[T],
                                defaultSourcePar: Option[Int] = None)(implicit timeOf: TimeExtractor[T]): StormSource[T] =
   SpoutSource(spout.map(t => (timeOf(t), t)), defaultSourcePar.map(option.SpoutParallelism(_)))

@johnynek
Copy link
Collaborator Author

yes, whitespace changes here, but in only two cases. I added type annotations to the returns.

ianoc added a commit that referenced this pull request Nov 13, 2013
@ianoc ianoc merged commit d4e3ee7 into develop Nov 13, 2013
@ianoc ianoc deleted the storm-cleanups branch November 13, 2013 00:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants