Exemplo n.º 1
0
 class WordCount(Topology):
     word_spout = Spec(WordSpout, )
     word_bolt = Spec(
         WordCountBolt,
         source=word_spout,
         group_on=Grouping.fields("foo"),
     )
Exemplo n.º 2
0
 class WordCount(Topology):
     word = Spec(WordSpout, )
     word_ = Spec(
         WordCountBolt,
         name='word',
         source=word,
     )
Exemplo n.º 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,
     )
Exemplo n.º 4
0
 class WordCount(Topology):
     word_spout = Spec(
         WordSpout,
         parallelism=0,
     )
Exemplo n.º 5
0
 class WordCount(Topology):
     word_bolt = Spec(WordCountBolt, )
Exemplo n.º 6
0
 class WordCount(Topology):
     word_spout = Spec(
         WordSpout,
         source='unknown',
     )
Exemplo n.º 7
0
 class WordCount(Topology):
     word_bolt = Spec(
         WordCountBolt,
         source='word_spout',
     )
     word_spout = Spec(WordSpout)