if (!entry.readahead.isNone()) {
listCache.promote(entry.results);
}
// get the readahead metadata
JDBCReadAheadMetaData readahead = entry.readahead;
if (readahead == null) {
readahead = manager.getMetaData().getReadAhead();
}
int from = entry.index;
int to = Math.min(entry.results.size(), entry.index + readahead.getPageSize());
List loadKeys = entry.results.subList(from, to);
return new EntityReadAheadInfo(loadKeys, readahead);
} else {
return new EntityReadAheadInfo(Collections.singletonList(pk));
}