I want to perform several queries, each next on the result of the previous one. But it takes a lot of time to create an IndexedCollection from ResultSet 'cos I didn't find any way to make it except using for(), forEach(), or stream(), and add each object of ResultSet to IndexedCollection. Is there any way to create IndexedCollection from ResultSet or to retrieve several queries, each on the result of the previous one?
Thanks a lot.