Skip to content

Instantly share code, notes, and snippets.

@nathanmarz
Created August 1, 2011 07:22
Show Gist options
  • 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