@Test public void testDeclareOutputFields() { BoltOutputBatcher bolt = new BoltOutputBatcher(this.boltMock, this.noBatching); OutputFieldsDeclarer declarer = mock(OutputFieldsDeclarer.class); bolt.declareOutputFields(declarer); verify(this.boltMock).declareOutputFields(any(BatchingOutputFieldsDeclarer.class)); }
@Override public void declareOutputFields(OutputFieldsDeclarer declarer) { this.wrappedBolt.declareOutputFields(new BatchingOutputFieldsDeclarer(declarer)); }
BoltOutputBatcher implements IRichBolt { @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { this.wrappedBolt.declareOutputFields(new BatchingOutputFieldsDeclarer(declarer)); } }
BoltOutputBatcher implements IRichBolt { @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { this.wrappedBolt.declareOutputFields(new BatchingOutputFieldsDeclarer(declarer)); } BoltOutputBatcher(IRichBolt bolt, int batchSize);  BoltOutputBatcher(IRichBolt bolt, Map<String, Integer> batchSizes); }
BoltOutputBatcher implements IRichBolt { @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { this.wrappedBolt.declareOutputFields(new BatchingOutputFieldsDeclarer(declarer)); } BoltOutputBatcher(IRichBolt bolt, int batchSize);  BoltOutputBatcher(IRichBolt bolt, Map<String, Integer> batchSizes); @Override void prepare(@SuppressWarnings("rawtypes") Map stormConf, TopologyContext context, OutputCollector collector); @Override void execute(Tuple input); @Override void cleanup(); @Override void declareOutputFields(OutputFieldsDeclarer declarer); @Override Map<String, Object> getComponentConfiguration(); static void registerKryoClasses(Config stormConfig); }
BoltOutputBatcher implements IRichBolt { @Override public void declareOutputFields(OutputFieldsDeclarer declarer) { this.wrappedBolt.declareOutputFields(new BatchingOutputFieldsDeclarer(declarer)); } BoltOutputBatcher(IRichBolt bolt, int batchSize);  BoltOutputBatcher(IRichBolt bolt, Map<String, Integer> batchSizes); @Override void prepare(@SuppressWarnings("rawtypes") Map stormConf, TopologyContext context, OutputCollector collector); @Override void execute(Tuple input); @Override void cleanup(); @Override void declareOutputFields(OutputFieldsDeclarer declarer); @Override Map<String, Object> getComponentConfiguration(); static void registerKryoClasses(Config stormConfig);  }