Class RelCopyOnWriteVisitor<E extends Exception>

java.lang.Object
io.substrait.relation.RelCopyOnWriteVisitor<E>
All Implemented Interfaces:
RelVisitor<Optional<Rel>,EmptyVisitationContext,E>

public class RelCopyOnWriteVisitor<E extends Exception> extends Object implements RelVisitor<Optional<Rel>,EmptyVisitationContext,E>
Class used to visit all child relations from a root relation and optionally replace subtrees by overriding a visitor method. The traversal will include relations inside of subquery expressions. By default, no subtree substitution will be performed. However, if a visit method is overridden to return a non-empty optional value, then that value will replace the relation in the tree.