I am new to Storm and Trident. I wrote a spout (used Storm core) to read from RDBMS. I override the open()
method of BaseRichSpout
public void open(Map map, TopologyContext topologyContext, SpoutOutputCollector spoutOutputCollector) {
this.collector = spoutOutputCollector;
this.context = topologyContext;
// connect to DB
connection = RDBMSConnection.getConnection();
query = "SELECT * from CUSTOMER";
}
Now I wanted to use Trident to do the same since it has built in join function. Could anyone please let me know, how can we achieve the same functionality in Trident. I am planning to implement IOpaquePartitionedTridentSpout
. Also is there any tutorial to learn more about Trident.