public List<PathPatternNode<V, S>> getMatchChildren(final String nodeName) {
    final List<PathPatternNode<V, S>> res = new ArrayList<>();
    if (children.containsKey(nodeName)) {
      res.add(children.get(nodeName));
    }
    if (children.containsKey(ONE_LEVEL_PATH_WILDCARD)) {
      res.add(children.get(ONE_LEVEL_PATH_WILDCARD));
    }
    if (children.containsKey(MULTI_LEVEL_PATH_WILDCARD)) {
      res.add(children.get(MULTI_LEVEL_PATH_WILDCARD));
    }
    childrenNamesWithNonTrivialWildcard.stream()
        .filter(path -> PathPatternUtil.isNodeMatch(path, nodeName))
        .map(children::get)
        .forEach(res::add);
    return res;
  }
Used only in PatternTreeMap to identify whether from root to the current node is a registered
path pattern. In PatternTreeMap, it can be replaced by the size of the valueSet
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PathPatternNode.java