@Override
  public int compareTo(Path path) {
    PartialPath partialPath = (PartialPath) path;
    return this.getFullPath().compareTo(partialPath.getFullPath());
  }
This PartialPath represents for full device path
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PartialPath.java