public Set queryWithPagingPredicate(String mapName, PagingPredicate pagingPredicate, final IterationType iterationType) {
final NodeEngine nodeEngine = this.nodeEngine;
final Set<Integer> partitionIds = getAllPartitionIds(nodeEngine);
pagingPredicate.setIterationType(iterationType);
setPreviousPagesAnchors(mapName, pagingPredicate, iterationType);
final Set result = new SortedQueryResultSet(pagingPredicate.getComparator(),
iterationType, pagingPredicate.getPageSize());
try {
List<Future> futures = queryOnMembers(mapName, pagingPredicate, nodeEngine);
addResultsOfPagingPredicate(futures, result, partitionIds);
if (partitionIds.isEmpty()) {