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