public class EsLookupBolt extends AbstractEsBolt
Basic bolt for looking up document in ES.
client, collector, objectMapper| Constructor and Description |
|---|
EsLookupBolt(EsConfig esConfig)
EsLookupBolt constructor.
|
EsLookupBolt(EsConfig esConfig,
EsTupleMapper tupleMapper,
EsLookupResultOutput output)
EsLookupBolt constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
Declare the output schema for all the streams of this topology.
|
void |
process(Tuple tuple)
Process a single non-tick tuple of input.
|
prepareexecute, onTickTuplecleanupgetComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic EsLookupBolt(EsConfig esConfig)
EsLookupBolt constructor.
esConfig - Elasticsearch configuration containing node addresses EsConfigNullPointerException - if any of the parameters is nullpublic EsLookupBolt(EsConfig esConfig, EsTupleMapper tupleMapper, EsLookupResultOutput output)
EsLookupBolt constructor.
esConfig - Elasticsearch configuration containing node addresses EsConfigtupleMapper - Tuple to ES document mapper EsTupleMapperoutput - ES response to Values mapper EsLookupResultOutputNullPointerException - if any of the parameters is nullpublic void process(Tuple tuple)
BaseTickTupleAwareRichBoltProcess a single non-tick tuple of input. Implementation needs to handle ack manually. More details on IBolt.execute(Tuple).
process in class BaseTickTupleAwareRichBolttuple - The input tuple to be processed.public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
IComponentDeclare the output schema for all the streams of this topology.
declareOutputFields in interface IComponentdeclareOutputFields in class AbstractEsBoltoutputFieldsDeclarer - this is used to declare output stream ids, output fields, and whether or not each output stream is a direct streamCopyright © 2021 The Apache Software Foundation. All rights reserved.