Package org.apache.calcite.prepare
Class Prepare.PreparedResultImpl
java.lang.Object
org.apache.calcite.prepare.Prepare.PreparedResultImpl
- All Implemented Interfaces:
Prepare.PreparedResult
,Typed
- Enclosing class:
Prepare
public abstract static class Prepare.PreparedResultImpl
extends Object
implements Prepare.PreparedResult, Typed
Abstract implementation of
Prepare.PreparedResult
.-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<RelCollation>
protected final boolean
protected final RelDataType
protected final RelNode
protected final RelDataType
protected final @Nullable TableModify.Operation
-
Constructor Summary
ModifierConstructorDescriptionprotected
PreparedResultImpl
(RelDataType rowType, RelDataType parameterRowType, List<? extends @Nullable List<String>> fieldOrigins, List<RelCollation> collations, RelNode rootRel, @Nullable TableModify.Operation tableModOp, boolean isDml) -
Method Summary
Modifier and TypeMethodDescriptionabstract Type
Gets the type of the element(s) that are returned in this collection.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.Returns the physical row type of this prepared 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, getCode
-
Field Details
-
rootRel
-
parameterRowType
-
rowType
-
isDml
protected final boolean isDml -
tableModOp
-
fieldOrigins
-
collations
-
-
Constructor Details
-
PreparedResultImpl
protected PreparedResultImpl(RelDataType rowType, RelDataType parameterRowType, List<? extends @Nullable List<String>> fieldOrigins, List<RelCollation> collations, RelNode rootRel, @Nullable TableModify.Operation tableModOp, boolean isDml)
-
-
Method Details
-
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
-
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
-
getPhysicalRowType
Returns the physical row type of this prepared statement. May not be identical to the row type returned by the validator; for example, the field names may have been made unique. -
getElementType
Description copied from interface:Typed
Gets the type of the element(s) that are returned in this collection.- Specified by:
getElementType
in interfaceTyped
-
getRootRel
-