public boolean next() throws SQLException {
    while (!fetchedRowsItr.hasNext()) {
      if (!nextRowBatch()) {
        return false;
      }
    }
    row = fetchedRowsItr.next();
    rowsFetched++;
    return true;
  }
Moves the cursor down one row from its current position.

@see java.sql.ResultSet#next()
@throws SQLException
          if a database access error occurs.
jdbc/src/java/org/apache/hive/jdbc/HiveQueryResultSet.java