Esempio n. 1
0
 /**
  * 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"));
 }
Esempio n. 2
0
 public void declareOutputFields(OutputFieldsDeclarer declarer) {
   declarer.declare(serialisationScheme.getOutputFields());
 }