public class JdbcLookupBolt extends AbstractJdbcBolt
Basic bolt for querying from any database.
collector, configKey, connectionProvider, jdbcClient, queryTimeoutSecs
Constructor and Description |
---|
JdbcLookupBolt(ConnectionProvider connectionProvider,
String selectQuery,
JdbcLookupMapper jdbcLookupMapper) |
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
Declare the output schema for all the streams of this topology.
|
protected void |
process(Tuple tuple)
Process a single non-tick tuple of input.
|
JdbcLookupBolt |
withQueryTimeoutSecs(int queryTimeoutSecs) |
cleanup, prepare
execute, onTickTuple
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentConfiguration
public JdbcLookupBolt(ConnectionProvider connectionProvider, String selectQuery, JdbcLookupMapper jdbcLookupMapper)
public JdbcLookupBolt withQueryTimeoutSecs(int queryTimeoutSecs)
protected void process(Tuple tuple)
BaseTickTupleAwareRichBolt
Process a single non-tick tuple of input. Implementation needs to handle ack manually. More details on IBolt.execute(Tuple)
.
process
in class BaseTickTupleAwareRichBolt
tuple
- The input tuple to be processed.public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
IComponent
Declare the output schema for all the streams of this topology.
outputFieldsDeclarer
- this is used to declare output stream ids, output fields, and whether or not each output stream is a direct streamCopyright © 2022 The Apache Software Foundation. All Rights Reserved.