code: public byte []data()
    {
      ByteArrayOutputStream bos = new ByteArrayOutputStream();
      
      try {
        toData(bos);
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
      
      return bos.toByteArray();
    }
docs: Serialize the row's metadata to enable upgrade.