public void write(final IRawStore store){
  if (addrMetadata != 0L) {
    throw new IllegalStateException("Already written.");
  }
  if (indexUUID == null) {
    throw new IllegalStateException("No indexUUID : wrong constructor?");
  }
  this.addrMetadata=store.write(ByteBuffer.wrap(SerializerUtil.serialize(this)));
}

public void write ( final IRawStore store ) { if ( addrMetadata != 0L ) { throw new IllegalStateException ( "Already written." ) ; } if ( indexUUID == null ) { throw new IllegalStateException ( "No indexUUID : wrong constructor?" ) ; } this . addrMetadata = store . write ( ByteBuffer . wrap ( SerializerUtil . serialize ( this ) ) ) ; }
write out the metadata record for the btree on the store and return the address .
