@Override
    public boolean next() throws SQLException {
        ensureOpen();

        lastReadColumn = 0;
        boolean hasNext = true;
        if (hasNext()) {
            try {
                currentRow = rowCursor.next();
            } catch (UncheckedIOException e) {
                throw SqlExceptionUtils.handle(e);
            }
            rowNumber++;
        } else {
            currentRow = null;
            hasNext = false;
        }
        return hasNext;
    }
Check if there is another row.

@return {@code true} if this result set has another row after the current
        cursor position, {@code false} else
@throws SQLException if something goes wrong
clickhouse-jdbc/src/main/java/com/clickhouse/jdbc/ClickHouseResultSet.java