public abstract class AbstractEsBolt extends BaseRichBolt
Modifier and Type | Field and Description |
---|---|
protected static org.elasticsearch.client.Client |
client |
protected OutputCollector |
collector |
Constructor and Description |
---|
AbstractEsBolt(EsConfig esConfig) |
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) |
abstract void |
execute(Tuple tuple) |
void |
prepare(Map map,
TopologyContext topologyContext,
OutputCollector outputCollector) |
cleanup
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentConfiguration
protected static org.elasticsearch.client.Client client
protected OutputCollector collector
public AbstractEsBolt(EsConfig esConfig)
public void prepare(Map map, TopologyContext topologyContext, OutputCollector outputCollector)
public abstract void execute(Tuple tuple)
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.