Package org.apache.storm.jdbc.bolt
Class JdbcLookupBolt
- All Implemented Interfaces:
- Serializable,- IBolt,- IComponent,- IRichBolt
Basic bolt for querying from any database.
- See Also:
- 
Field SummaryFields inherited from class org.apache.storm.jdbc.bolt.AbstractJdbcBoltcollector, configKey, connectionProvider, jdbcClient, queryTimeoutSecs
- 
Constructor SummaryConstructorsConstructorDescriptionJdbcLookupBolt(ConnectionProvider connectionProvider, String selectQuery, JdbcLookupMapper jdbcLookupMapper) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddeclareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) Declare the output schema for all the streams of this topology.protected voidProcess a single non-tick tuple of input.withQueryTimeoutSecs(int queryTimeoutSecs) Methods inherited from class org.apache.storm.jdbc.bolt.AbstractJdbcBoltcleanup, prepareMethods inherited from class org.apache.storm.topology.base.BaseTickTupleAwareRichBoltexecute, onTickTupleMethods inherited from class org.apache.storm.topology.base.BaseComponentgetComponentConfigurationMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.storm.topology.IComponentgetComponentConfiguration
- 
Constructor Details- 
JdbcLookupBoltpublic JdbcLookupBolt(ConnectionProvider connectionProvider, String selectQuery, JdbcLookupMapper jdbcLookupMapper) 
 
- 
- 
Method Details- 
withQueryTimeoutSecs
- 
processDescription copied from class:BaseTickTupleAwareRichBoltProcess a single non-tick tuple of input. Implementation needs to handle ack manually. More details onIBolt.execute(Tuple).- Specified by:
- processin class- BaseTickTupleAwareRichBolt
- Parameters:
- tuple- The input tuple to be processed.
 
- 
declareOutputFieldsDescription copied from interface:IComponentDeclare the output schema for all the streams of this topology.- Parameters:
- outputFieldsDeclarer- this is used to declare output stream ids, output fields, and whether or not each output stream is a direct stream
 
 
-