/** @return {@code true} If next row was fetched successfully. */
  private boolean fetchNext() {
    if (data == null) return false;

    try {
      if (!data.next()) return false;

      for (int c = 0; c < row.length; c++) row[c] = data.getObject(c + 1);

      return true;
    } catch (SQLException e) {
      throw new IgniteException(e);
    }
  }