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) |
protected void |
process(Tuple tuple) |
JdbcLookupBolt |
withQueryTimeoutSecs(int queryTimeoutSecs) |
cleanup, prepareexecute, onTickTuplegetComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic JdbcLookupBolt(ConnectionProvider connectionProvider, String selectQuery, JdbcLookupMapper jdbcLookupMapper)
public JdbcLookupBolt withQueryTimeoutSecs(int queryTimeoutSecs)
protected void process(Tuple tuple)
process in class BaseTickTupleAwareRichBoltpublic void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
Copyright © 2018 The Apache Software Foundation. All Rights Reserved.