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 Details

    • rootRel

      protected final RelNode rootRel
    • parameterRowType

      protected final RelDataType parameterRowType
    • rowType

      protected final RelDataType rowType
    • isDml

      protected final boolean isDml
    • tableModOp

      protected final @Nullable TableModify.Operation tableModOp
    • fieldOrigins

      protected final List<? extends @Nullable List<String>> fieldOrigins
    • collations

      protected final List<RelCollation> collations
  • Constructor Details

  • 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 interface Prepare.PreparedResult
    • getTableModOp

      public @Nullable TableModify.Operation 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 interface Prepare.PreparedResult
    • getFieldOrigins

      public List<? extends @Nullable List<String>> 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 interface Prepare.PreparedResult
    • getParameterRowType

      public RelDataType getParameterRowType()
      Description copied from interface: Prepare.PreparedResult
      Returns a record type whose fields are the parameters of this statement.
      Specified by:
      getParameterRowType in interface Prepare.PreparedResult
    • getPhysicalRowType

      public RelDataType 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

      public abstract Type getElementType()
      Description copied from interface: Typed
      Gets the type of the element(s) that are returned in this collection.
      Specified by:
      getElementType in interface Typed
    • getRootRel

      public RelNode getRootRel()