public class EsPercolateBolt extends AbstractEsBolt
Basic bolt for retrieve matched percolate queries.
client, collector| Constructor and Description |
|---|
EsPercolateBolt(EsConfig esConfig,
EsTupleMapper tupleMapper)
EsPercolateBolt constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) |
void |
prepare(Map map,
TopologyContext topologyContext,
OutputCollector outputCollector) |
void |
process(Tuple tuple)
Tuple should have relevant fields (source, index, type) for storeMapper to extract ES document.
If there exists non-empty percolate response, EsPercolateBolt will emit tuple with original source and Percolate.Match for each Percolate.Match in PercolateResponse. |
execute, onTickTuplecleanupgetComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic EsPercolateBolt(EsConfig esConfig, EsTupleMapper tupleMapper)
EsPercolateBolt constructor
esConfig - Elasticsearch configuration containing node addresses and cluster name EsConfigtupleMapper - Tuple to ES document mapper EsTupleMapperpublic void prepare(Map map, TopologyContext topologyContext, OutputCollector outputCollector)
prepare in interface IBoltprepare in class AbstractEsBoltpublic void process(Tuple tuple)
Tuple should have relevant fields (source, index, type) for storeMapper to extract ES document.
If there exists non-empty percolate response, EsPercolateBolt will emit tuple with original source and Percolate.Match for each Percolate.Match in PercolateResponse.
process in class BaseTickTupleAwareRichBoltpublic void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
declareOutputFields in interface IComponentdeclareOutputFields in class AbstractEsBoltCopyright © 2018 The Apache Software Foundation. All Rights Reserved.