Package org.apache.calcite.prepare
Class Prepare.PreparedExplain
java.lang.Object
org.apache.calcite.prepare.Prepare.PreparedExplain
- All Implemented Interfaces:
Prepare.PreparedResult
- Enclosing class:
Prepare
public abstract static class Prepare.PreparedExplain
extends Object
implements Prepare.PreparedResult
PreparedExplanation is a PreparedResult for an EXPLAIN PLAN statement.
It's always good to have an explanation prepared.
-
Constructor Summary
ModifierConstructorDescriptionprotected
PreparedExplain
(@Nullable RelDataType rowType, RelDataType parameterRowType, @Nullable RelRoot root, SqlExplainFormat format, SqlExplainLevel detailLevel) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Returns the code generated by preparation.Returns a list describing, for each result field, the origin of the field as a 4-element list of (database, schema, table, column).Returns a record type whose fields are the parameters of this statement.@Nullable TableModify.Operation
Returns the table modification operation corresponding to this statement if it is a table modification statement; otherwise null.boolean
isDml()
Returns whether this result is for a DML statement, in which case the result set is one row with one column containing the number of rows affected.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.prepare.Prepare.PreparedResult
getBindable
-
Constructor Details
-
PreparedExplain
protected PreparedExplain(@Nullable RelDataType rowType, RelDataType parameterRowType, @Nullable RelRoot root, SqlExplainFormat format, SqlExplainLevel detailLevel)
-
-
Method Details
-
getCode
Description copied from interface:Prepare.PreparedResult
Returns the code generated by preparation.- Specified by:
getCode
in interfacePrepare.PreparedResult
-
getParameterRowType
Description copied from interface:Prepare.PreparedResult
Returns a record type whose fields are the parameters of this statement.- Specified by:
getParameterRowType
in interfacePrepare.PreparedResult
-
isDml
public boolean isDml()Description copied from interface:Prepare.PreparedResult
Returns whether this result is for a DML statement, in which case the result set is one row with one column containing the number of rows affected.- Specified by:
isDml
in interfacePrepare.PreparedResult
-
getTableModOp
Description copied from interface:Prepare.PreparedResult
Returns the table modification operation corresponding to this statement if it is a table modification statement; otherwise null.- Specified by:
getTableModOp
in interfacePrepare.PreparedResult
-
getFieldOrigins
Description copied from interface:Prepare.PreparedResult
Returns a list describing, for each result field, the origin of the field as a 4-element list of (database, schema, table, column).- Specified by:
getFieldOrigins
in interfacePrepare.PreparedResult
-