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
FieldsModifier and TypeFieldDescriptionprotected final List<RelCollation>protected final booleanprotected final RelDataTypeprotected final RelNodeprotected final RelDataTypeprotected final @Nullable TableModify.Operation - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPreparedResultImpl(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 TypeGets 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.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, 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.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
 - 
getParameterRowType
Description copied from interface:Prepare.PreparedResultReturns a record type whose fields are the parameters of this statement.- Specified by:
 getParameterRowTypein 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:TypedGets the type of the element(s) that are returned in this collection.- Specified by:
 getElementTypein interfaceTyped
 - 
getRootRel
 
 -