// Ok, we are good, let's try to get some results from the main heap.
KeyValue nextKv = populateResult(results, this.storeHeap, limit, currentRow, offset,
length, metric);
if (nextKv == KV_LIMIT) {
if (this.filter != null && filter.hasFilterRow()) {
throw new IncompatibleFilterException(
"Filter whose hasFilterRow() returns true is incompatible with scan with limit!");
}
return true; // We hit the limit.
}
stopRow = nextKv == null