@Override public boolean hasNext() { if (closed || afterLast) { return false; } if (nextRow == null && (limit <= 0 || rowId + 1 < limit)) { nextRow = fetchNextRow(); } return nextRow != null; }
@Override public boolean next() { if (hasNext()) { rowId++; currentRow = nextRow; nextRow = null; return true; } if (!afterLast) { rowId++; currentRow = null; afterLast = true; } return false; }
@Override public void close() { super.close(); if (l != null) { l.close(); } if (r != null) { r.close(); } }
@Override public void reset() { super.reset(); resetJoinBatchAfterQuery(); topTableFilter.reset(); setCurrentRowNumber(0); rowNumber = 0; } }
if (lazyResult != null) { if (limitRows > 0) { lazyResult.setLimit(limitRows);
@Override public void close() { if (!isClosed()) { super.close(); resetJoinBatchAfterQuery(); } }
@Override public void reset() { super.reset(); if (l != null) { l.reset(); } if (r != null) { r.reset(); } leftDone = false; rightDone = false; } }