For example, consider a plan node tree before this method is called:
A / | \ / | \ B C DThen after this method is called with
c.insertAsParent(e)
, the resulting plan node tree will be: A / | \ / | \ B E D | | C
Also note that the node on which this method is called ('C' in the example above) will always be added as the {@link #addLastChild(PlanNode) last child} to the new parent. This allows the new parent to already have children beforethis method is called.
@param newParent the new parent; method does nothing if this is null
|
|