Re: paging the query results

2015-09-16 Thread Zen 98052
seems possible from Jena, right? Thanks, Z From: aj...@virginia.edu Sent: Wednesday, September 16, 2015 12:08 PM To: users@jena.apache.org Subject: Re: paging the query results For the record, https://stackoverflow.com/questions/28210775/split-list-into-

Re: paging the query results

2015-09-16 Thread aj...@virginia.edu
something like: >>> >>> >>> FluentIterable newIterator = FluentIterable.from(rs); >>> >>> newIterator.skip(startOffset); >>> >>> newIterator.limit(rowsCount); >>> >>> >>> Unfortunately the first line doesn't work (the ResultSet type is not type >>> of Iterable as expected by FluentIterable). >>> >>> Let me know the right way of paging the query results. >>> >>> >>> >>> Thanks, >>> >>> Z >> >

Re: paging the query results

2015-09-16 Thread Andy Seaborne
wIterator = FluentIterable.from(rs); newIterator.skip(startOffset); newIterator.limit(rowsCount); Unfortunately the first line doesn't work (the ResultSet type is not type of Iterable as expected by FluentIterable). Let me know the right way of paging the query results. Thanks, Z

Re: paging the query results

2015-09-16 Thread aj...@virginia.edu
irst line doesn't work (the ResultSet type is not type of > Iterable as expected by FluentIterable). > > Let me know the right way of paging the query results. > > > > Thanks, > > Z

Re: paging the query results

2015-09-16 Thread Zen 98052
: Wednesday, September 16, 2015 11:19 AM To: users@jena.apache.org Subject: paging the query results Any idea on how to do the paging on the results set? For example in this code: ResultSet rs = qe.execSelect(); I was thinking to use com.google.common.collect.FluentIterable, so let say I have the

paging the query results

2015-09-16 Thread Zen 98052
like: FluentIterable newIterator = FluentIterable.from(rs); newIterator.skip(startOffset); newIterator.limit(rowsCount); Unfortunately the first line doesn't work (the ResultSet type is not type of Iterable as expected by FluentIterable). Let me know the right way of paging the query re