InternalPartitionService partitionService = nodeEngine.getPartitionService();
Collection<Integer> initialPartitions = mapService.getMapServiceContext().getOwnedPartitions();
IndexService indexService = mapService.getMapServiceContext().getMapContainer(name).getIndexService();
Set<QueryableEntry> entries = null;
if (!partitionService.hasOnGoingMigration()) {
entries = indexService.query(predicate);
}
result = new QueryResult();
if (entries != null) {
for (QueryableEntry entry : entries) {
result.add(new QueryResultEntryImpl(entry.getKeyData(), entry.getKeyData(), entry.getValueData()));