public class RelXmlWriter extends RelWriterImpl
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
generic |
private XmlOutput |
xmlOutput |
pw, spacer
Constructor and Description |
---|
RelXmlWriter(java.io.PrintWriter pw,
SqlExplainLevel detailLevel) |
Modifier and Type | Method and Description |
---|---|
protected void |
explain_(RelNode rel,
java.util.List<Pair<java.lang.String,java.lang.Object>> values) |
private void |
explainGeneric(RelNode rel,
java.util.List<Pair<java.lang.String,java.lang.Object>> values)
Generates generic XML (sometimes called 'element-oriented XML').
|
private void |
explainSpecific(RelNode rel,
java.util.List<Pair<java.lang.String,java.lang.Object>> values)
Generates specific XML (sometimes called 'attribute-oriented XML').
|
done, explain, getDetailLevel, item, simple
private final XmlOutput xmlOutput
boolean generic
public RelXmlWriter(java.io.PrintWriter pw, SqlExplainLevel detailLevel)
protected void explain_(RelNode rel, java.util.List<Pair<java.lang.String,java.lang.Object>> values)
explain_
in class RelWriterImpl
private void explainGeneric(RelNode rel, java.util.List<Pair<java.lang.String,java.lang.Object>> values)
<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>
rel
- Relational expressionvalues
- List of term-value pairsprivate void explainSpecific(RelNode rel, java.util.List<Pair<java.lang.String,java.lang.Object>> values)
<Join condition="EMP.DEPTNO = DEPT.DEPTNO"> <Project expr1="x + y" expr2="42"> <TableAccess table="SALES.EMPS"> </Join>
rel
- Relational expressionvalues
- List of term-value pairsCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.