@Override
  public boolean equals(Object obj) {
    if (!(obj instanceof PartialPath)) {
      return false;
    }
    String[] otherNodes = ((PartialPath) obj).getNodes();
    if (this.nodes.length != otherNodes.length) {
      return false;
    } else {
      for (int i = 0; i < this.nodes.length; i++) {
        if (!Objects.equals(nodes[i], otherNodes[i])) {
          return false;
        }
      }
    }
    return true;
  }
Generate a list of partial paths which are the intersection of this path pattern and input
prefix pattern.

@param prefixPattern must be a prefix full path ending with one "**", like "root.sg.**"
@return a list of partial paths which are the intersection of this path pattern and input
    prefix pattern.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PartialPath.java