public boolean prefixMatchFullPath(PartialPath rPath) {
    String[] rNodes = rPath.getNodes();
    if (this.nodes.length > rNodes.length) {
      return false;
    }
    for (int i = 0; i < this.nodes.length; i++) {
      if (nodes[i].equals(MULTI_LEVEL_PATH_WILDCARD)) {
        return true;
      }
      if (nodes[i].equals(ONE_LEVEL_PATH_WILDCARD)) {
        continue;
      }
      if (PathPatternUtil.hasWildcard(nodes[i])) {
        if (PathPatternUtil.isNodeMatch(nodes[i], rNodes[i])) {
          continue;
        } else {
          return false;
        }
      }
      if (!nodes[i].equals(rNodes[i])) {
        return false;
      }
    }

    return true;
  }
Test if current PartialPath matches a full path's prefix. Current partialPath acts as a prefix
path pattern. rPath is supposed to be a full time-series path without wildcards. e.g. Current
PartialPath "root.sg" or "root.*" can match rPath "root.sg.device.s1", "root.sg.device" or
"root.sg.vehicle.s1".

@param rPath a plain full path of a time-series
@return true if a successful match, otherwise return false.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PartialPath.java