コード例 #1
0
ファイル: AMQPSpout.java プロジェクト: redink/storm-rabbitmq
 /**
  * Declares the output fields of this spout according to the provided {@link
  * backtype.storm.spout.Scheme}.
  *
  * <p>Additionally declares an error stream (see {@link #ERROR_STREAM_NAME} for handling malformed
  * or empty messages to avoid infinite retry loops
  */
 @Override
 public void declareOutputFields(OutputFieldsDeclarer declarer) {
   declarer.declare(serialisationScheme.getOutputFields());
   declarer.declareStream(ERROR_STREAM_NAME, new Fields("deliveryTag", "bytes", "otherbytes"));
 }
コード例 #2
0
 public void declareOutputFields(OutputFieldsDeclarer declarer) {
   declarer.declare(serialisationScheme.getOutputFields());
 }