I want show the process of long running jdbc query.Is it possible?

If the total result of the query is of 100 records and if am retrieving 10 records at a time, then after retrieving first 10 records, is it possible to know that 90% is remaining?

Thanks in advance