Package org.apache.calcite.sql.type
Class TableFunctionReturnTypeInference
java.lang.Object
org.apache.calcite.sql.type.ExplicitReturnTypeInference
org.apache.calcite.sql.type.TableFunctionReturnTypeInference
- All Implemented Interfaces:
SqlReturnTypeInference
TableFunctionReturnTypeInference implements rules for deriving table function
output row types by expanding references to cursor parameters.
-
Field Summary
Fields inherited from class org.apache.calcite.sql.type.ExplicitReturnTypeInference
protoType -
Constructor Summary
ConstructorsConstructorDescriptionTableFunctionReturnTypeInference(RelProtoDataType unexpandedOutputType, List<String> paramNames, boolean isPassthrough) -
Method Summary
Modifier and TypeMethodDescription@Nullable Set<RelColumnMapping>inferReturnType(SqlOperatorBinding opBinding) Infers the return type of a call to anSqlOperator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.sql.type.SqlReturnTypeInference
andThen, orElse
-
Constructor Details
-
TableFunctionReturnTypeInference
public TableFunctionReturnTypeInference(RelProtoDataType unexpandedOutputType, List<String> paramNames, boolean isPassthrough)
-
-
Method Details
-
getColumnMappings
-
inferReturnType
Description copied from interface:SqlReturnTypeInferenceInfers the return type of a call to anSqlOperator.- Specified by:
inferReturnTypein interfaceSqlReturnTypeInference- Overrides:
inferReturnTypein classExplicitReturnTypeInference- Parameters:
opBinding- description of operator binding- Returns:
- inferred type; may be null
-