org.eigenbase.relopt
Class RelOptXmlPlanWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
org.eigenbase.relopt.RelOptPlanWriter
org.eigenbase.relopt.RelOptXmlPlanWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class RelOptXmlPlanWriter
- extends RelOptPlanWriter
Callback for a relational expression to dump in XML format.
- "JUnit testcase:"
|
Field Summary |
(package private) boolean |
generic
|
private org.eigenbase.xom.XMLOutput |
xmlOutput
|
| Methods inherited from class java.io.PrintWriter |
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xmlOutput
private final org.eigenbase.xom.XMLOutput xmlOutput
generic
boolean generic
RelOptXmlPlanWriter
public RelOptXmlPlanWriter(PrintWriter pw,
SqlExplainLevel detailLevel)
explain
public void explain(RelNode rel,
String[] terms,
Object[] values)
- Description copied from class:
RelOptPlanWriter
- Prints the plan of a given relational expression to this writer.
- Overrides:
explain in class RelOptPlanWriter
- Parameters:
rel - Relational expressionterms - Names of the attributes of the planvalues - Values of the attributes of the plan
explainGeneric
private void explainGeneric(RelNode rel,
String[] terms,
Object[] values)
- Generates generic XML (sometimes called 'element-oriented XML'). Like
this:
<RelNode id="1" type="Join">
<Property name="condition">EMP.DEPTNO = DEPT.DEPTNO</Property>
<Inputs>
<RelNode id="2" type="Project">
<Property name="expr1">x + y</Property>
<Property name="expr2">45</Property>
</RelNode>
<RelNode id="3" type="TableAccess">
<Property name="table">SALES.EMP</Property>
</RelNode>
</Inputs>
</RelNode>
- Parameters:
rel - terms - values -
explainSpecific
private void explainSpecific(RelNode rel,
String[] terms,
Object[] values)
- Generates specific XML (sometimes called 'attribute-oriented XML'). Like
this:
<Join condition="EMP.DEPTNO = DEPT.DEPTNO">
<Project expr1="x + y" expr2="42">
<TableAccess table="SALES.EMPS">
</Join>
- Parameters:
rel - terms - values -