public boolean absolute()

in src/main/java/com/aliyun/odps/jdbc/OdpsScollResultSet.java [99:113]


  public boolean absolute(int rows) throws SQLException {
    checkClosed();

    long target = rows >= 0 ? rows : totalRows + rows;
    target = rows >= 0 ? target - 1 : target;  // to zero-index

    if (target >= 0 && target < totalRows) {
      cursorRow = target;
      return true;
    }

    // leaves the cursor beforeFirst or afterLast
    cursorRow = target < 0 ? -1 : totalRows;
    return false;
  }