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
ConstructorsModifierConstructorDescriptionprotectedPreparedExplain(@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.OperationReturns the table modification operation corresponding to this statement if it is a table modification statement; otherwise null.booleanisDml()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, waitMethods 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.PreparedResultReturns the code generated by preparation.- Specified by:
getCodein interfacePrepare.PreparedResult
-
getParameterRowType
Description copied from interface:Prepare.PreparedResultReturns a record type whose fields are the parameters of this statement.- Specified by:
getParameterRowTypein interfacePrepare.PreparedResult
-
isDml
public boolean isDml()Description copied from interface:Prepare.PreparedResultReturns 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:
isDmlin interfacePrepare.PreparedResult
-
getTableModOp
Description copied from interface:Prepare.PreparedResultReturns the table modification operation corresponding to this statement if it is a table modification statement; otherwise null.- Specified by:
getTableModOpin interfacePrepare.PreparedResult
-
getFieldOrigins
Description copied from interface:Prepare.PreparedResultReturns a list describing, for each result field, the origin of the field as a 4-element list of (database, schema, table, column).- Specified by:
getFieldOriginsin interfacePrepare.PreparedResult
-