org.eigenbase.relopt
Class RelOptPlanWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
org.eigenbase.relopt.RelOptPlanWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
- Direct Known Subclasses:
- RelOptXmlPlanWriter
public class RelOptPlanWriter
- extends PrintWriter
Callback for an expression to dump itself to.
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 |
withIdPrefix
private boolean withIdPrefix
detailLevel
private final SqlExplainLevel detailLevel
level
int level
RelOptPlanWriter
public RelOptPlanWriter(PrintWriter pw)
RelOptPlanWriter
public RelOptPlanWriter(PrintWriter pw,
SqlExplainLevel detailLevel)
setIdPrefix
public void setIdPrefix(boolean b)
explain
public void explain(RelNode rel,
String[] terms,
Object[] values)
- Prints the plan of a given relational expression to this writer.
- Parameters:
rel
- Relational expressionterms
- Names of the attributes of the planvalues
- Values of the attributes of the plan- "Precondition:"
- rel != null, terms.length == rel.getChildExps().length + values.length, values != null
explainInputs
private void explainInputs(RelNode[] inputs)
explain
public void explain(RelNode rel,
String[] terms)
explain
public final void explain(RelNode rel,
List<String> termList,
List<Object> valueList)
- Shorthand for
explain(RelNode, String[], Object[])
.
- Parameters:
rel
- Relational expressiontermList
- List of names of the attributes of the planvalueList
- List of values of the attributes of the plan
explainSubset
public void explainSubset(String s,
RelNode child)
- Special form used by
RelSubset
.
explainTree
public void explainTree(RelNode exp)
getDetailLevel
public SqlExplainLevel getDetailLevel()
- Returns:
- detail level at which plan should be generated