}
@Override
public Row next()
{
IndexRow next;
CursorLifecycle.checkIdleOrActive(this);
boolean needAnother;
do {
if ((next = (IndexRow) indexCursor.next()) != null) {
needAnother = !(isTableIndex ||
selector.matchesAll() ||
!next.keyEmpty() && selector.matches(next.tableBitmap()));
} else {
setIdle();
needAnother = false;
}
} while (needAnother);