backtype.storm.topology
Interface IBasicBolt
- All Superinterfaces:
- IComponent, Serializable
- All Known Implementing Classes:
- BaseBasicBolt, BatchProcessWord, BatchRepeatA, IdentityBolt, PrepareBatchBolt, PrepareRequest, TestConfBolt, TestWordCounter, TridentSpoutCoordinator
public interface IBasicBolt
- extends IComponent
prepare
void prepare(Map stormConf,
TopologyContext context)
execute
void execute(Tuple input,
BasicOutputCollector collector)
- Process the input tuple and optionally emit new tuples based on the input tuple.
All acking is managed for you. Throw a FailedException if you want to fail the tuple.
cleanup
void cleanup()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.