public class PrepareResult extends Object
DruidPlanner, the artifacts produced are the output signature of the
result row, and type information for any dynamic parameters which must be bound before planning the query.| Constructor and Description |
|---|
PrepareResult(org.apache.calcite.rel.type.RelDataType validatedRowType,
org.apache.calcite.rel.type.RelDataType returnedRowType,
org.apache.calcite.rel.type.RelDataType parameterRowType) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.rel.type.RelDataType |
getParameterRowType()
Row type from
SqlValidator.getParameterRowType(org.apache.calcite.sql.SqlNode) containing the
name and type of each parameter. |
org.apache.calcite.rel.type.RelDataType |
getReturnedRowType()
Row type for the result that the end user will receive.
|
org.apache.calcite.rel.type.RelDataType |
getValidatedRowType()
Row type from
RelRoot.validatedRowType prepared by DruidPlanner.prepare(). |
public PrepareResult(org.apache.calcite.rel.type.RelDataType validatedRowType,
org.apache.calcite.rel.type.RelDataType returnedRowType,
org.apache.calcite.rel.type.RelDataType parameterRowType)
public org.apache.calcite.rel.type.RelDataType getValidatedRowType()
RelRoot.validatedRowType prepared by DruidPlanner.prepare().
Corresponds to the SELECT portion of a SQL statement. For SELECT, this is the row type of the SELECT itself.
For EXPLAIN PLAN FOR SELECT, INSERT ... SELECT, or REPLACE ... SELECT, this is the row type of the
embedded SELECT.public org.apache.calcite.rel.type.RelDataType getReturnedRowType()
getValidatedRowType() in
cases like EXPLAIN (where the user gets an explanation, not the query results) and other non-SELECT
statements.public org.apache.calcite.rel.type.RelDataType getParameterRowType()
SqlValidator.getParameterRowType(org.apache.calcite.sql.SqlNode) containing the
name and type of each parameter.Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.