code: @Override
    public RowSet getNextRowSet(FetchOrientation orientation, long maxRows) throws HiveSQLException {
      validateDefaultFetchOrientation(orientation);
      if (orientation.equals(FetchOrientation.FETCH_FIRST)) {
        resetResultReader();
      }
      List<String> rows = readResults((int) maxRows);
      RowSet rowSet = RowSetFactory.create(resultSchema, getProtocolVersion());
  
      for (String row : rows) {
        rowSet.addRow(new String[] {row});
      }
      return rowSet;
    }
docs: /* (non-Javadoc)
  @see org.apache.hive.service.cli.operation.Operation#getNextRowSet(org.apache.hive.service.cli.FetchOrientation, long)