コード例 #1
0
 class PerlWordCount(Topology):
     word_spout = ShellSpout.spec(command='perl',
                                  script='count_words.pl',
                                  par=2,
                                  outputs=['word'])
     word_bolt = WordCountBolt.spec(
         inputs={word_spout: Grouping.fields("word")}, par=8)
コード例 #2
0
ファイル: test_dsl.py プロジェクト: vishalbelsare/streamparse
 class PerlWordCount(Topology):
     word_spout = ShellSpout.spec(
         script="count_words.pl", par=8, outputs=["word"]
     )
     word_bolt = WordCountBolt.spec(
         inputs={word_spout: Grouping.fields("word")}, par=8
     )
コード例 #3
0
 class PerlWordCount(Topology):
     word_spout = ShellSpout.spec(command="perl",
                                  par=8,
                                  outputs=["word"])
     word_bolt = WordCountBolt.spec(
         inputs={word_spout: Grouping.fields("word")}, par=8)