Skip to content

Instantly share code, notes, and snippets.

@nathanmarz
Created August 1, 2011 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanmarz/1117718 to your computer and use it in GitHub Desktop.
Save nathanmarz/1117718 to your computer and use it in GitHub Desktop.
import storm
class SplitSentenceBolt(storm.BasicBolt):
def process(self, tup):
words = tup.values[0].split(" ")
for word in words:
storm.emit([word])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment