@Override
  protected void serializeImpl(DataOutputStream stream) throws IOException {
    stream.writeShort(getType().getPlanType());
    ThriftCommonsSerDeUtils.serializeTConsensusGroupId(regionId, stream);
    ThriftCommonsSerDeUtils.serializeTDataNodeLocation(oldNode, stream);
    ThriftCommonsSerDeUtils.serializeTDataNodeLocation(newNode, stream);
  }
Constructor.

@param regionId update the region location
@param oldNode remove the old location
@param newNode add the new location
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/consensus/request/write/partition/UpdateRegionLocationPlan.java