public boolean startsWithOrPrefixOf(String[] otherNodes) {
    for (int i = 0; i < otherNodes.length && i < nodes.length; i++) {
      if (!nodes[i].equals(otherNodes[i])) {
        return false;
      }
    }
    return true;
  }
This PartialPath represents for full device path
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PartialPath.java