@Deprecated // TODO: Refactor SD processing to avoid needing this
    public void setDataType(DataType type) {
        dataType = type;
        fieldId = calculateIdV7(null);
        forcedId = false;
    }
Set the data type of the field. This will cause recalculation of fieldid for version 7+.

@param type The new type of the field.
@deprecated do not use
document/src/main/java/com/yahoo/document/Field.java