class WordCount(Topology): word_spout = Spec(WordSpout, ) word_bolt = Spec( WordCountBolt, source=word_spout, group_on=Grouping.fields("foo"), )
class WordCount(Topology): word = Spec(WordSpout, ) word_ = Spec( WordCountBolt, name='word', source=word, )
class WordCount(Topology): word_spout = Spec( WordSpout, parallelism=2, ) word_bolt = Spec( WordCountBolt, source=word_spout, group_on=Grouping.fields("word"), parallelism=8, )
class WordCount(Topology): word_spout = Spec( WordSpout, parallelism=0, )
class WordCount(Topology): word_bolt = Spec(WordCountBolt, )
class WordCount(Topology): word_spout = Spec( WordSpout, source='unknown', )
class WordCount(Topology): word_bolt = Spec( WordCountBolt, source='word_spout', ) word_spout = Spec(WordSpout)