public class TridentSpoutCoordinator extends Object implements IBasicBolt
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
TridentSpoutCoordinator(String id,
ITridentSpout spout) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
declareOutputFields(OutputFieldsDeclarer declarer)
Declare the output schema for all the streams of this topology.
|
void |
execute(Tuple tuple,
BasicOutputCollector collector)
Process the input tuple and optionally emit new tuples based on the input tuple.
|
Map<String,Object> |
getComponentConfiguration()
Declare configuration specific to this component.
|
void |
prepare(Map conf,
TopologyContext context) |
public TridentSpoutCoordinator(String id, ITridentSpout spout)
public void prepare(Map conf, TopologyContext context)
prepare
in interface IBasicBolt
public void execute(Tuple tuple, BasicOutputCollector collector)
IBasicBolt
execute
in interface IBasicBolt
public void cleanup()
cleanup
in interface IBasicBolt
public void declareOutputFields(OutputFieldsDeclarer declarer)
IComponent
declareOutputFields
in interface IComponent
declarer
- this is used to declare output stream ids, output fields, and whether or not each output stream is a direct streampublic Map<String,Object> getComponentConfiguration()
IComponent
TopologyBuilder
getComponentConfiguration
in interface IComponent
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.