protected final N getAncestorNodeByLevel(int level) {
    return ancestorStack.get(level).node;
  }
Get full path from root to node.

@param node node must be concluded in ancestorStack or nextMatchedNode
@return full path from traverse start node to the specified node
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/tree/AbstractTreeVisitor.java