@Override
    public int compareTo(FieldValue fieldValue) {
        return getDataType().compareTo(fieldValue.getDataType());
    }
Read a field value from the specified reader
document/src/main/java/com/yahoo/document/datatypes/FieldValue.java