docs: public void write(RowOutputInterface out,
                        ResultMetaData meta) throws IOException {
  
          beforeFirst();
          out.writeLong(id);
          out.writeInt(size);
          out.writeInt(0);    // offset
          out.writeInt(size);
  
          while (hasNext()) {
              Object[] data = getNext();
  
              out.writeData(meta.getColumnCount(), meta.columnTypes, data, null,
                            null);
          }
  
          beforeFirst();
      }