public static void applyUpdate(Field field, ValueUpdate update, Document doc) {
        doc.setFieldValue(field, applyUpdate(update, field.getDataType().createFieldValue()));
    }
Returns true if this update can be represented as a set of document field values.
indexinglanguage/src/main/java/com/yahoo/vespa/indexinglanguage/FieldUpdateHelper.java