protected PartialPath getParentPartialPath() {
    List<String> nodeNames = new ArrayList<>();
    Iterator<AncestorStackEntry> iterator = ancestorStack.iterator();
    for (int i = 0, size = shouldVisitSubtree ? ancestorStack.size() - 1 : ancestorStack.size();
        i < size;
        i++) {
      if (iterator.hasNext()) {
        nodeNames.add(iterator.next().node.getName());
      }
    }
    return new PartialPath(nodeNames.toArray(new String[0]));
  }
Get full path of parent of current node. This method should be used in {@linkplain
AbstractTreeVisitor#acceptInternalMatchedNode}, {@linkplain
AbstractTreeVisitor#acceptFullMatchedNode},{@linkplain
AbstractTreeVisitor#shouldVisitSubtreeOfInternalMatchedNode} or {@linkplain
AbstractTreeVisitor#shouldVisitSubtreeOfFullMatchedNode}.

@return full path from traverse start node to the parent of current node
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/tree/AbstractTreeVisitor.java