public class TableFunctionReturnTypeInference extends ExplicitReturnTypeInference
| Modifier and Type | Field and Description |
|---|---|
private Set<RelColumnMapping> |
columnMappings |
private boolean |
isPassthrough |
private List<String> |
paramNames |
protoType| Constructor and Description |
|---|
TableFunctionReturnTypeInference(RelProtoDataType unexpandedOutputType,
List<String> paramNames,
boolean isPassthrough) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addOutputColumn(List<String> expandedFieldNames,
List<RelDataType> expandedOutputTypes,
int iInputColumn,
int iCursor,
SqlOperatorBinding opBinding,
RelDataTypeField cursorField) |
Set<RelColumnMapping> |
getColumnMappings() |
RelDataType |
inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of a call to an
SqlOperator. |
private Set<RelColumnMapping> columnMappings
private final boolean isPassthrough
public TableFunctionReturnTypeInference(RelProtoDataType unexpandedOutputType, List<String> paramNames, boolean isPassthrough)
public Set<RelColumnMapping> getColumnMappings()
public RelDataType inferReturnType(SqlOperatorBinding opBinding)
SqlReturnTypeInferenceSqlOperator.inferReturnType in interface SqlReturnTypeInferenceinferReturnType in class ExplicitReturnTypeInferenceopBinding - description of operator bindingprivate void addOutputColumn(List<String> expandedFieldNames, List<RelDataType> expandedOutputTypes, int iInputColumn, int iCursor, SqlOperatorBinding opBinding, RelDataTypeField cursorField)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.