* @param fieldValues map of field names and values to be updated on the record
* @return Put containing all field updates
*/
public Put buildRecordUpdate(RecordId recordId, Map<QName, Object> fieldValues) {
Put put = new Put(recordId.toBytes());
FieldValueWriter fieldValueWriter = hbaseRepo.newFieldValueWriter(put, null);
for (Entry<QName, Object> fieldEntry : fieldValues.entrySet()) {
try {
fieldValueWriter.addFieldValue(fieldTypes.getFieldType(fieldEntry.getKey()), fieldEntry.getValue(), null);
} catch (Exception e) {
throw new RuntimeException(e);
}
}