Class PrelVisualizerVisitor

java.lang.Object
org.apache.drill.exec.planner.physical.visitor.PrelVisualizerVisitor
All Implemented Interfaces:
PrelVisitor<Void,PrelVisualizerVisitor.VisualizationState,Exception>

public class PrelVisualizerVisitor extends Object implements PrelVisitor<Void,PrelVisualizerVisitor.VisualizationState,Exception>
Debug-time class that prints a PRel tree to the console for inspection. Insert this into code during development to see the state of the tree at various points of interest during the planning process.

Use this by inserting lines into our prel transforms to see what is happening. This is useful if you must understand the transforms, or change them. For example:

In file: DefaultSqlHandler#convertToPrel():


 PrelVisualizerVisitor.print("Before EER", phyRelNode); // Debug only
 phyRelNode = ExcessiveExchangeIdentifier.removeExcessiveEchanges(phyRelNode, targetSliceSize);
 PrelVisualizerVisitor.print("After EER", phyRelNode); // Debug only