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