Class TextBasedLogicalPlanPrinterImpl
java.lang.Object
se.liu.ida.hefquin.engine.queryplan.utils.BaseForTextBasedPlanPrinters
se.liu.ida.hefquin.engine.queryplan.utils.TextBasedLogicalPlanPrinterImpl
- All Implemented Interfaces:
 LogicalPlanPrinter
public class TextBasedLogicalPlanPrinterImpl
extends BaseForTextBasedPlanPrinters
implements LogicalPlanPrinter
Internally, the functionality of this class is implemented based on
 a 
LogicalPlanVisitor, which makes sure that we get a compiler
 error whenever we add a new type of logical operator but forget to
 extend this class here to cover that new operator.- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from class se.liu.ida.hefquin.engine.queryplan.utils.BaseForTextBasedPlanPrinters
BaseForTextBasedPlanPrinters.OpNamePrinter - 
Field Summary
Fields inherited from class se.liu.ida.hefquin.engine.queryplan.utils.BaseForTextBasedPlanPrinters
lastChildIndentBase, levelIndentBase, nonLastChildIndentBase, singleBase, spaceBase - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidplanWalk(LogicalPlan plan, int planNumber, int planLevel, int numberOfSiblings, TextBasedLogicalPlanPrinterImpl.OpPrinter opPrinter, String rootOpIndentString) This method recursively goes through a plan, and appends specific strings to a print stream.voidprint(LogicalPlan plan, PrintStream out) Prints the given plan to the given stream.Methods inherited from class se.liu.ida.hefquin.engine.queryplan.utils.BaseForTextBasedPlanPrinters
getIndentLevelString, getIndentLevelStringForDetail, printExpressions, printFederationMember, printLogicalOperatorBase, printSPARQLGraphPattern 
- 
Constructor Details
- 
TextBasedLogicalPlanPrinterImpl
public TextBasedLogicalPlanPrinterImpl() 
 - 
 - 
Method Details
- 
print
Description copied from interface:LogicalPlanPrinterPrints the given plan to the given stream.- Specified by:
 printin interfaceLogicalPlanPrinter
 - 
planWalk
public void planWalk(LogicalPlan plan, int planNumber, int planLevel, int numberOfSiblings, TextBasedLogicalPlanPrinterImpl.OpPrinter opPrinter, String rootOpIndentString) This method recursively goes through a plan, and appends specific strings to a print stream.- Parameters:
 plan- The current plan (root operator) that will be formatted.planNumber- The number of a plan in terms of its super plan.planLevel- The depth of the root operator in a plan.numberOfSiblings- The number of sibling plans of a plan.opPrinter- The helper object for the printing.
 
 -