def process(self, tup): word = tup.values[0] self.counts[word] += 1 storm.emit([word, self.counts[word]]) storm.log('%s: %d' % (word, self.counts[word]))
def nextTuple(self): word = next(self.words) storm.emit([word])