code: public InternalRow getRow(int rowId) {
      assert(rowId >= 0 && rowId < numRows);
      row.rowId = rowId;
      return row;
    }
docs: Returns the row in this batch at `rowId`. Returned row is reused across calls.