@Override
    public int compareTo(DataType dataType) {
        return Integer.compare(dataTypeId, dataType.dataTypeId);
    }
Utility function for parsing field paths.
document/src/main/java/com/yahoo/document/DataType.java