}
@Override
public byte[] serialize(PartitionKey key) {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
Encoder encoder = new MemcmpEncoder(outputStream);
Schema schemaToUse;
if (key.getLength() == schema.getFields().size()) {
schemaToUse = schema;
} else {