public byte[] data(){
  ByteArrayOutputStream bos=new ByteArrayOutputStream();
  try {
    toData(bos);
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
  return bos.toByteArray();
}

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