Package org.apache.calcite.prepare
Interface Prepare.PreparedResult
- All Known Implementing Classes:
- Prepare.PreparedExplain,- Prepare.PreparedResultImpl
- Enclosing class:
- Prepare
public static interface Prepare.PreparedResult
- 
Method SummaryModifier and TypeMethodDescriptiongetBindable(org.apache.calcite.avatica.Meta.CursorFactory cursorFactory) Executes the prepared result.getCode()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.
- 
Method Details- 
getCodeString getCode()Returns the code generated by preparation.
- 
isDmlboolean 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.
- 
getTableModOp@Nullable TableModify.Operation getTableModOp()Returns the table modification operation corresponding to this statement if it is a table modification statement; otherwise null.
- 
getFieldOriginsReturns a list describing, for each result field, the origin of the field as a 4-element list of (database, schema, table, column).
- 
getParameterRowTypeRelDataType getParameterRowType()Returns a record type whose fields are the parameters of this statement.
- 
getBindableExecutes the prepared result.- Parameters:
- cursorFactory- How to map values into a cursor
- Returns:
- producer of rows resulting from execution
 
 
-