public abstract static class Prepare.PreparedExplain extends java.lang.Object implements Prepare.PreparedResult
Modifier and Type | Field and Description |
---|---|
private SqlExplainLevel |
detailLevel |
private SqlExplainFormat |
format |
private RelDataType |
parameterRowType |
private RelRoot |
root |
private RelDataType |
rowType |
Constructor and Description |
---|
PreparedExplain(RelDataType rowType,
RelDataType parameterRowType,
RelRoot root,
SqlExplainFormat format,
SqlExplainLevel detailLevel) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
Returns the code generated by preparation.
|
java.util.List<java.util.List<java.lang.String>> |
getFieldOrigins()
Returns a list describing, for each result field, the origin of the
field as a 4-element list of (database, schema, table, column).
|
RelDataType |
getParameterRowType()
Returns a record type whose fields are the parameters of this statement.
|
TableModify.Operation |
getTableModOp()
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBindable
private final RelDataType rowType
private final RelDataType parameterRowType
private final RelRoot root
private final SqlExplainFormat format
private final SqlExplainLevel detailLevel
public PreparedExplain(RelDataType rowType, RelDataType parameterRowType, RelRoot root, SqlExplainFormat format, SqlExplainLevel detailLevel)
public java.lang.String getCode()
Prepare.PreparedResult
getCode
in interface Prepare.PreparedResult
public RelDataType getParameterRowType()
Prepare.PreparedResult
getParameterRowType
in interface Prepare.PreparedResult
public boolean isDml()
Prepare.PreparedResult
isDml
in interface Prepare.PreparedResult
public TableModify.Operation getTableModOp()
Prepare.PreparedResult
getTableModOp
in interface Prepare.PreparedResult
public java.util.List<java.util.List<java.lang.String>> getFieldOrigins()
Prepare.PreparedResult
getFieldOrigins
in interface Prepare.PreparedResult
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.