public class LocalWriteBolt extends BaseBasicBolt
Note: The number of parallelisms for this spout should be equal to the number of files/paths to read.
Constructor and Description |
---|
LocalWriteBolt(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer)
Declare the output schema for all the streams of this topology.
|
void |
execute(Tuple input,
BasicOutputCollector collector)
Process the input tuple and optionally emit new tuples based on the input tuple.
|
void |
prepare(java.util.Map<java.lang.String,java.lang.Object> map,
TopologyContext topologyContext) |
cleanup
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentConfiguration
public void prepare(java.util.Map<java.lang.String,java.lang.Object> map, TopologyContext topologyContext)
prepare
in interface IBasicBolt
prepare
in class BaseBasicBolt
public void execute(Tuple input, BasicOutputCollector collector)
IBasicBolt
All acking is managed for you. Throw a FailedException if you want to fail the tuple.
public void declareOutputFields(OutputFieldsDeclarer declarer)
IComponent
declarer
- this is used to declare output stream ids, output fields, and whether or not each output stream is a direct stream