public void applyToAncestors ( Operation operation ) { PlanNode ancestor = getParent ( ) ; while ( ancestor != null ) { operation . apply ( ancestor ) ; ancestor = ancestor . getParent ( ) ; } }
Apply the operation to all ancestor nodes .