Package org.apache.heron.api.bolt
Interface IBasicBolt
-
- All Superinterfaces:
IComponent,Serializable
- All Known Subinterfaces:
IStreamletBasicOperator<R,T>
- All Known Implementing Classes:
BaseBasicBolt
public interface IBasicBolt extends IComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanup()voidexecute(Tuple input, BasicOutputCollector collector)Process the input tuple and optionally emit new tuples based on the input tuple.voidprepare(Map<String,Object> heronConf, TopologyContext context)-
Methods inherited from interface org.apache.heron.api.topology.IComponent
declareOutputFields, getComponentConfiguration
-
-
-
-
Method Detail
-
prepare
void prepare(Map<String,Object> heronConf, 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()
-
-