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
-
Field Summary
Fields inherited from class se.liu.ida.hefquin.engine.queryplan.utils.BaseForTextBasedPlanPrinters
lastChildIndentBase, levelIndentBase, nonLastChildIndentBase, singleBase, spaceBase
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
planWalk
(LogicalPlan plan, int planNumber, int planLevel, int numberOfSiblings, PrintStream out, String rootOpIndentString) This method recursively goes through a plan, and appends specific strings to a print stream.void
print
(LogicalPlan plan, PrintStream out) Prints the given plan to the given stream.protected void
printOp
(LogicalOpBGPAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpBGPOptAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpBind op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpFilter op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpGlobalToLocal op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpGPAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpGPOptAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpJoin op, PrintStream out, String indentLevelString) protected void
printOp
(LogicalOpLocalToGlobal op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpMultiwayJoin op, PrintStream out, String indentLevelString) protected void
printOp
(LogicalOpMultiwayLeftJoin op, PrintStream out, String indentLevelString) protected void
printOp
(LogicalOpMultiwayUnion op, PrintStream out, String indentLevelString) protected void
printOp
(LogicalOpRequest<?, ?> op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpRightJoin op, PrintStream out, String indentLevelString) protected void
printOp
(LogicalOpTPAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpTPOptAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) protected void
printOp
(LogicalOpUnion op, PrintStream out, String indentLevelString) Methods inherited from class se.liu.ida.hefquin.engine.queryplan.utils.BaseForTextBasedPlanPrinters
getIndentLevelString, getIndentLevelStringForDetail, nameOfLogicalOp, printFederationMember, printLogicalOperatorBase, printSPARQLGraphPattern
-
Constructor Details
-
TextBasedLogicalPlanPrinterImpl
public TextBasedLogicalPlanPrinterImpl()
-
-
Method Details
-
print
Description copied from interface:LogicalPlanPrinter
Prints the given plan to the given stream.- Specified by:
print
in interfaceLogicalPlanPrinter
-
planWalk
public void planWalk(LogicalPlan plan, int planNumber, int planLevel, int numberOfSiblings, PrintStream out, 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.out
- The print stream that will print a plan.
-
printOp
protected void printOp(LogicalOpBGPAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
protected void printOp(LogicalOpBGPOptAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
protected void printOp(LogicalOpBind op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
protected void printOp(LogicalOpFilter op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
protected void printOp(LogicalOpGlobalToLocal op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
protected void printOp(LogicalOpGPAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
protected void printOp(LogicalOpGPOptAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
-
printOp
protected void printOp(LogicalOpLocalToGlobal op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
-
printOp
-
printOp
-
printOp
protected void printOp(LogicalOpRequest<?, ?> op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
-
printOp
protected void printOp(LogicalOpTPAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
protected void printOp(LogicalOpTPOptAdd op, PrintStream out, String indentLevelString, String indentLevelStringForOpDetail) -
printOp
-