Class RelWriterImpl
java.lang.Object
org.apache.calcite.rel.externalize.RelWriterImpl
- All Implemented Interfaces:
RelWriter
- Direct Known Subclasses:
RelDotWriter
,RelXmlWriter
Implementation of
RelWriter
.-
Field Summary
Modifier and TypeFieldDescriptionprotected final SqlExplainLevel
protected final PrintWriter
protected final org.apache.calcite.avatica.util.Spacer
protected final boolean
-
Constructor Summary
ConstructorDescriptionRelWriterImpl
(PrintWriter pw, SqlExplainLevel detailLevel, boolean withIdPrefix) -
Method Summary
Modifier and TypeMethodDescriptionWrites the completed explanation.final void
Prints an explanation of a node, with a list of (term, value) pairs.protected void
Returns detail level at which plan should be generated.Adds an attribute to the explanation of the current node.simple()
Converts the collected terms and values to a string.
-
Field Details
-
pw
-
detailLevel
-
withIdPrefix
protected final boolean withIdPrefix -
spacer
protected final org.apache.calcite.avatica.util.Spacer spacer
-
-
Constructor Details
-
RelWriterImpl
-
RelWriterImpl
-
-
Method Details
-
explain_
-
explain
Description copied from interface:RelWriter
Prints an explanation of a node, with a list of (term, value) pairs.The term-value pairs are generally gathered by calling
RelNode.explain(RelWriter)
. Each sub-class ofRelNode
callsRelWriter.input(String, org.apache.calcite.rel.RelNode)
andRelWriter.item(String, Object)
to declare term-value pairs. -
getDetailLevel
Description copied from interface:RelWriter
Returns detail level at which plan should be generated.- Specified by:
getDetailLevel
in interfaceRelWriter
-
item
Description copied from interface:RelWriter
Adds an attribute to the explanation of the current node. -
done
Description copied from interface:RelWriter
Writes the completed explanation. -
simple
Converts the collected terms and values to a string. Does not write to the parent writer.
-