public PartialPath copy() {
    PartialPath result = new PartialPath();
    result.nodes = nodes;
    result.fullPath = fullPath;
    result.device = device;
    return result;
  }
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