private RowCoder(Schema schema, UUID id) { if (schema.getUUID() != null) { checkArgument( schema.getUUID().equals(id), "Schema has a UUID that doesn't match argument to constructor. %s v.s. %s", schema.getUUID(), id); } else { schema = SerializableUtils.clone(schema); schema.setUUID(id); } this.schema = schema; this.id = id; }