private void searchOverlapped(
      PathPatternNode<V, VSerializer> node, String[] pathNodes, int pos, Set<V> resultSet) {
    if (pos == pathNodes.length - 1) {
      resultSet.addAll(node.getValues());
      return;
    }
    if (node.isMultiLevelWildcard()) {
      searchOverlapped(node, pathNodes, pos + 1, resultSet);
    }
    for (PathPatternNode<V, VSerializer> child : node.getMatchChildren(pathNodes[pos + 1])) {
      searchOverlapped(child, pathNodes, pos + 1, resultSet);
    }
  }
Recursive method for search overlapped pattern.

@param node current PathPatternNode
@param pathNodes pathNodes of key
@param pos current index of pathNodes
@param resultSet result set
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PatternTreeMap.java