output.writeBytes(fieldType.getValueType().toBytes(record.getField(fieldName), new IdentityRecordStack()));
if (hasMetadata) {
HBaseRepository.writeMetadataWithLengthSuffix(metadata, output);
}
event.addUpdatedField(fieldType.getId());
kvs.add(new KeyValue(rowKey, family,
Bytes.add(new byte[]{LilyHBaseSchema.RecordColumn.DATA_PREFIX}, fieldType.getId().getBytes()),
output.toByteArray()));
}