Пример #1
0
 class WordCount(Topology):
     word_spout = Spec(WordSpout, )
     word_bolt = Spec(
         WordCountBolt,
         source=word_spout,
         group_on=Grouping.fields("foo"),
     )
Пример #2
0
 class WordCount(Topology):
     word = Spec(WordSpout, )
     word_ = Spec(
         WordCountBolt,
         name='word',
         source=word,
     )
Пример #3
0
 class WordCount(Topology):
     word_spout = Spec(
         WordSpout,
         parallelism=2,
     )
     word_bolt = Spec(
         WordCountBolt,
         source=word_spout,
         group_on=Grouping.fields("word"),
         parallelism=8,
     )
Пример #4
0
 class WordCount(Topology):
     word_spout = Spec(
         WordSpout,
         parallelism=0,
     )
Пример #5
0
 class WordCount(Topology):
     word_bolt = Spec(WordCountBolt, )
Пример #6
0
 class WordCount(Topology):
     word_spout = Spec(
         WordSpout,
         source='unknown',
     )
Пример #7
0
 class WordCount(Topology):
     word_bolt = Spec(
         WordCountBolt,
         source='word_spout',
     )
     word_spout = Spec(WordSpout)