Hi,

Please properly subscribe to the mailing list so that the community can
receive email notifications for you messages. Here is the instruction:
http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1


begineer wrote
> Sorry for mistake, correction in below line. Set pageSize to 10. But
> output remains same. I still get 20 records in result.
> 
> Set
> <String>
>  res =
> cache.query(query.setPageSize(10)).getAll().stream().map(Cache.Entry::getValue).collect(toSet());

QueryCursor allows you to iterate through the whole result set, and the
pagination happens internally. This means that client will fetch rows in
pages discarding old ones, so that you never have more than 10 rows in local
memory at the same time.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Pagination-to-fetch-complete-Cache-data-tp3071p6394.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to